aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorTheo P <theo.park.n@gmail.com>2023-10-13 16:21:10 +0900
committerTheo P <theo.park.n@gmail.com>2023-10-13 16:22:02 +0900
commit5d8921990bf2fab9a1c9dc0d74bf1bbe1b6dc980 (patch)
treee9d6e7adcd8de123da1156769a5bd68edb92e380 /init.lua
parent0b659bd508400274662964519feecc87b5c2f098 (diff)
feat(lsp): use Telescope builtin functions for LSP definition and type
definition
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index fb08080..a7667dd 100644
--- a/init.lua
+++ b/init.lua
@@ -422,10 +422,10 @@ local on_attach = function(_, bufnr)
nmap('<leader>rn', vim.lsp.buf.rename, '[R]e[n]ame')
nmap('<leader>ca', vim.lsp.buf.code_action, '[C]ode [A]ction')
- nmap('gd', vim.lsp.buf.definition, '[G]oto [D]efinition')
+ nmap('gd', require('telescope.builtin').lsp_definitions, '[G]oto [D]efinition')
nmap('gr', require('telescope.builtin').lsp_references, '[G]oto [R]eferences')
nmap('gI', require('telescope.builtin').lsp_implementations, '[G]oto [I]mplementation')
- nmap('<leader>D', vim.lsp.buf.type_definition, 'Type [D]efinition')
+ nmap('<leader>D', require('telescope.builtin').lsp_type_definitions, 'Type [D]efinition')
nmap('<leader>ds', require('telescope.builtin').lsp_document_symbols, '[D]ocument [S]ymbols')
nmap('<leader>ws', require('telescope.builtin').lsp_dynamic_workspace_symbols, '[W]orkspace [S]ymbols')