From c4818616d541e4456850d1982be39b8151bd0f2a Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Tue, 11 Jun 2024 09:05:16 +0200 Subject: [PATCH] feat(fzf): ignore current line for some lsp pickers --- lua/lazyvim/plugins/extras/editor/fzf.lua | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/lua/lazyvim/plugins/extras/editor/fzf.lua b/lua/lazyvim/plugins/extras/editor/fzf.lua index 31ffc1ec..241eb526 100644 --- a/lua/lazyvim/plugins/extras/editor/fzf.lua +++ b/lua/lazyvim/plugins/extras/editor/fzf.lua @@ -198,16 +198,12 @@ return { "neovim/nvim-lspconfig", opts = function() local Keys = require("lazyvim.plugins.lsp.keymaps").get() + -- stylua: ignore vim.list_extend(Keys, { - { - "gd", - "FzfLua lsp_definitions jump_to_single_result=true", - desc = "Goto Definition", - has = "definition", - }, - { "gr", "FzfLua lsp_references jump_to_single_result=true", desc = "References", nowait = true }, - { "gI", "FzfLua lsp_implementations jump_to_single_result=true", desc = "Goto Implementation" }, - { "gy", "FzfLua lsp_typedefs jump_to_single_result=true", desc = "Goto T[y]pe Definition" }, + { "gd", "FzfLua lsp_definitions jump_to_single_result=true ignore_current_line=true", desc = "Goto Definition", has = "definition" }, + { "gr", "FzfLua lsp_references jump_to_single_result=true ignore_current_line=true", desc = "References", nowait = true }, + { "gI", "FzfLua lsp_implementations jump_to_single_result=true ignore_current_line=true", desc = "Goto Implementation" }, + { "gy", "FzfLua lsp_typedefs jump_to_single_result=true ignore_current_line=true", desc = "Goto T[y]pe Definition" }, }) end, },