diff --git a/.config/nvim/after/plugin/lsp.lua b/.config/nvim/after/plugin/lsp.lua index 11ca0425..44796a73 100644 --- a/.config/nvim/after/plugin/lsp.lua +++ b/.config/nvim/after/plugin/lsp.lua @@ -82,7 +82,7 @@ local on_attach = function(client, bufnr) map("n", "K", vim.lsp.buf.hover, { buffer = bufnr }) map("n", "", vim.lsp.buf.signature_help, { buffer = bufnr }) - map("n", "gd", vim.lsp.buf.definition, { buffer = bufnr }) + map("n", "gd", telescope.lsp_definitions, { buffer = bufnr }) -- conflicts with tabs -- map("n", "gtd", vim.lsp.buf.type_definition, { buffer = bufnr }) -- map("n", "gi", vim.lsp.buf.implementation, { buffer = bufnr }) diff --git a/.config/nvim/after/plugin/telescope.lua b/.config/nvim/after/plugin/telescope.lua index a29c77aa..8994860f 100644 --- a/.config/nvim/after/plugin/telescope.lua +++ b/.config/nvim/after/plugin/telescope.lua @@ -38,6 +38,7 @@ telescope.setup { }, lsp_references = { layout_config = { height = 0.8 }, + initial_mode = "normal", }, live_grep = { layout_config = { height = 0.8 },