2021-07-02 20:18:57 +02:00
|
|
|
local M = {}
|
|
|
|
|
|
|
|
M.config = function()
|
2021-07-05 03:14:01 +02:00
|
|
|
local snap = require "snap"
|
|
|
|
local layout = snap.get("layout").bottom
|
|
|
|
local file = snap.config.file:with { consumer = "fzy", layout = layout }
|
|
|
|
local vimgrep = snap.config.vimgrep:with { layout = layout }
|
|
|
|
snap.register.command("find_files", file { producer = "ripgrep.file" })
|
|
|
|
snap.register.command("buffers", file { producer = "vim.buffer" })
|
|
|
|
snap.register.command("oldfiles", file { producer = "vim.oldfile" })
|
|
|
|
snap.register.command("live_grep", vimgrep {})
|
2021-07-02 20:18:57 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
return M
|