2022-01-31 21:54:22 +01:00
|
|
|
local M = {}
|
|
|
|
|
2022-02-01 14:28:29 +01:00
|
|
|
local bindings = {
|
2022-08-24 13:29:04 +02:00
|
|
|
-- Open files with control + P
|
|
|
|
files = "<c-P>",
|
|
|
|
-- See diagnostics with space + d
|
|
|
|
lsp_document_diagnostics = "<space>d",
|
|
|
|
lsp_workspace_diagnostics = "<space>D"
|
2022-02-01 14:28:29 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
function M.setup()
|
2022-08-24 13:29:04 +02:00
|
|
|
for action, keybind in pairs(bindings) do
|
|
|
|
-- Maps the keybind to the action
|
|
|
|
vim.keymap.set('n', keybind, require('fzf-lua')[action])
|
|
|
|
end
|
2022-01-31 21:54:22 +01:00
|
|
|
end
|
|
|
|
|
2022-02-01 14:28:29 +01:00
|
|
|
return M
|