From b4c4cbd4f0b89b1b348fcf245472b11a05f23d6c Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Mon, 19 Sep 2022 20:16:05 +0200 Subject: Added nvim shortcut to search lsp symbols with telescope --- config/nvim/lua/plugins.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'config/nvim/lua/plugins.lua') diff --git a/config/nvim/lua/plugins.lua b/config/nvim/lua/plugins.lua index eb00dc3..a347e7e 100644 --- a/config/nvim/lua/plugins.lua +++ b/config/nvim/lua/plugins.lua @@ -71,8 +71,9 @@ return require("packer").startup(function() map("n", "gd", "lua vim.lsp.buf.definition()", opts) map("n", "[d", "lua vim.diagnostic.goto_prev()", opts) map("n", "]d", "lua vim.diagnostic.goto_next()", opts) - map("n", "q", "Telescope diagnostics", opts) map("n", "rn", "lua vim.lsp.buf.rename()", opts) + map("n", "q", "Telescope diagnostics", opts) + map("n", "p", "Telescope lsp_workspace_symbols", opts) end local lspconfig = require("lspconfig") local capabilities = require("cmp_nvim_lsp").update_capabilities( @@ -402,7 +403,7 @@ return require("packer").startup(function() map('n', '', 'lua require"telescope-config".project_files()', { noremap = true, silent = true }) map("n", "H", "Telescope help_tags", {}) map("n", ";", "Telescope commands", {}) - map("n", "p", "Telescope tags", {}) + -- map("n", "p", "Telescope tags", {}) map("n", "g", "Telescope live_grep", {}) map("n", "G", "Telescope grep_string", {}) end -- cgit