From 5c0a268fe01efadef253f715472df99fe8b1f395 Mon Sep 17 00:00:00 2001 From: qwjyh Date: Fri, 15 Nov 2024 20:54:25 +0900 Subject: [PATCH] update(nvim): add keymaps for telescope lsp utilities - outgoing/incoming calls - references --- dotfiles/neovim/init.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dotfiles/neovim/init.lua b/dotfiles/neovim/init.lua index 646e13c..8bd2524 100644 --- a/dotfiles/neovim/init.lua +++ b/dotfiles/neovim/init.lua @@ -490,6 +490,9 @@ local builtin = require('telescope.builtin') vim.keymap.set('n', 'ff', function() builtin.find_files { sort_lastused = true } end, { desc = "find files" }) vim.keymap.set('n', 'fw', builtin.lsp_workspace_symbols, { desc = "lsp workspace symbols" }) vim.keymap.set('n', 'fd', builtin.lsp_document_symbols, { desc = "lsp document symbols" }) +vim.keymap.set('n', 'flr', builtin.lsp_references, { desc = "lsp references for word" }) +vim.keymap.set('n', 'fli', builtin.lsp_incoming_calls, { desc = "lsp incoming calls" }) +vim.keymap.set('n', 'flo', builtin.lsp_outgoing_calls, { desc = "lsp outgoing calls" }) vim.keymap.set('n', 'fb', builtin.buffers, { desc = "buffers" }) vim.keymap.set('n', 'fg', builtin.live_grep, { desc = "grep" }) vim.keymap.set('n', 'fh', builtin.help_tags, { desc = "help tags" })