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

21 lines
482 B
Lua
Raw Normal View History

2022-01-31 21:54:22 +01:00
local mapSilent = require("my.keymaps").mapSilent
local M = {}
2022-02-01 14:28:29 +01:00
local bindings = {
2022-01-31 21:54:22 +01:00
-- Open files with control + P
2022-02-01 14:28:29 +01:00
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
mapSilent('n', keybind, "<cmd>lua require('fzf-lua')." .. action .. "()<CR>")
end
2022-01-31 21:54:22 +01:00
end
2022-02-01 14:28:29 +01:00
return M