fix: fzf config

This commit is contained in:
Mariano Z. 2025-02-17 14:14:16 -03:00
parent 8ace408fdd
commit 54ec573c62
Signed by: marianozunino
GPG key ID: 4C73BAD25156DACE
3 changed files with 30 additions and 28 deletions

View file

@ -74,7 +74,7 @@ function M.config()
position = "bottom",
height = 10,
width = 50,
icons = true,
-- icons = false,
mode = "workspace_diagnostics",
fold_open = "",
fold_closed = "",
@ -100,14 +100,14 @@ function M.config()
auto_preview = true,
auto_fold = false,
auto_jump = { "lsp_definitions" },
signs = {
-- Icons / text used for a diagnostic
error = "",
warning = "",
hint = "",
information = "",
other = "",
},
-- signs = {
-- -- Icons / text used for a diagnostic
-- error = "",
-- warning = "",
-- hint = "",
-- information = "",
-- other = "",
-- },
use_diagnostic_signs = false,
})

View file

@ -25,13 +25,13 @@ M.config = function()
})
nmap("gd", function()
fzf_lua.lsp_definitions({ jump_to_single_result = true })
fzf_lua.lsp_definitions({ jump1 = true })
end, { desc = "Goto Definition" })
nmap("gr", function()
fzf_lua.lsp_references({ ignore_current_line = true })
end, { desc = "Goto References" })
nmap("gi", function()
fzf_lua.lsp_implementations({ jump_to_single_result = true })
fzf_lua.lsp_implementations({ jump1 = true })
end, { desc = "Goto Implementation" })
nmap("<leader>D", fzf_lua.lsp_typedefs, { desc = "Type Definition" })
nmap("<leader>ca", fzf_lua.lsp_code_actions, { desc = "Code Action" })
@ -39,6 +39,7 @@ M.config = function()
nmap("<leader>ws", fzf_lua.lsp_workspace_symbols, { desc = "Workspace Symbols" })
nmap("<leader>ic", fzf_lua.lsp_incoming_calls, { desc = "Incoming Calls" })
nmap("<leader>oc", fzf_lua.lsp_outgoing_calls, { desc = "Outgoing Calls" })
nmap("<leader>gf", fzf_lua.live_grep, { desc = "Find Live Grep" })
-- keys = {
nmap("<leader>/", function()
@ -48,7 +49,6 @@ M.config = function()
})
end, { desc = "Find Files" })
nmap(";", fzf_lua.buffers, { desc = "Find Buffers" })
nmap("gf", fzf_lua.live_grep, { desc = "Find Live Grep" })
nmap("sb", fzf_lua.grep_curbuf, { desc = "Search Current Buffer" })
nmap("gw", fzf_lua.grep_cword, { desc = "Search word under cursor" })
nmap("gW", fzf_lua.grep_cWORD, { desc = "Search WORD under cursor" })