mirror of
https://github.com/marianozunino/nvim.git
synced 2025-06-28 10:33:49 -03:00
fix: fzf config
This commit is contained in:
parent
8ace408fdd
commit
54ec573c62
3 changed files with 30 additions and 28 deletions
|
@ -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,
|
||||
})
|
||||
|
||||
|
|
|
@ -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" })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue