1
Fork 0
satellite/dotfiles/neovim/lua/my/plugins/fzf-lua.lua

19 lines
388 B
Lua

local M = {}
local bindings = {
-- Open files with control + P
files = "<c-P>",
-- See diagnostics with space + d
lsp_document_diagnostics = "<space>d",
lsp_workspace_diagnostics = "<space>D"
}
function M.setup()
for action, keybind in pairs(bindings) do
-- Maps the keybind to the action
vim.keymap.set('n', keybind, require('fzf-lua')[action])
end
end
return M