feat(nvim): add gt mapping (go to type definition)

main
mandlm 2024-02-15 07:44:11 +01:00
parent bfc8ac40ce
commit f382d0c41b
Signed by: mandlm
GPG Key ID: 4AA25D647AA54CC7
1 changed files with 1 additions and 0 deletions

View File

@ -21,6 +21,7 @@ local on_attach = function(client, bufnr)
nnoremap("gD", vim.lsp.buf.declaration) nnoremap("gD", vim.lsp.buf.declaration)
nnoremap("gd", telescope.lsp_definitions) nnoremap("gd", telescope.lsp_definitions)
nnoremap("gt", telescope.lsp_type_definitions)
nnoremap("gi", telescope.lsp_implementations) nnoremap("gi", telescope.lsp_implementations)
nnoremap("gr", telescope.lsp_references) nnoremap("gr", telescope.lsp_references)
nnoremap("K", vim.lsp.buf.hover) nnoremap("K", vim.lsp.buf.hover)