chore(nvim): added fzf-lua and refactor of mason-lspconfig

This commit is contained in:
Afonso Franco 2024-05-26 16:21:16 +01:00
parent 7165e68328
commit 301d75a811
Signed by: afonso
SSH key fingerprint: SHA256:gkVPzsQQJzqi21ntQBV6pXTx4bYI53rFGI4XtvCpwd4
2 changed files with 128 additions and 0 deletions

View file

@ -0,0 +1,34 @@
local fzflua = require('fzf-lua')
fzflua.register_ui_select()
fzflua.setup({
defaults = {
headers = false,
formatter = "path.filename_first",
winopts = {
border = "single",
width = 0.6,
height = 0.5,
},
},
files = {
previewer = false,
winopts = {
width = 0.5,
height = 0.3,
}
},
grep = {
winopts = {
width = 0.7,
preview = {
layout = "horizontal",
horizontal = "right:40%"
}
},
}
})
vim.keymap.set('n', '<leader>ff', fzflua.files, {})
vim.keymap.set('n', '<leader>fe', fzflua.diagnostics_workspace, {})
vim.keymap.set('n', '<leader>fg', fzflua.live_grep, {})
vim.keymap.set('n', '<leader>fb', fzflua.buffers, {})
vim.keymap.set('n', '<leader>fh', fzflua.help_tags, {})