Nvim: Remap type definition

This commit is contained in:
Marko Korhonen 2023-11-25 13:44:23 +02:00
parent 024fad6baf
commit 71cfebbf64
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890

View file

@ -11,6 +11,7 @@ local function map_keys()
name = "Go to",
d = { telescope_builtin.lsp_definitions, "Definition" },
D = { vim.lsp.buf.declaration, "Declaration" },
t = { vim.lsp.buf.type_definition, "Type definition" },
i = { telescope_builtin.lsp_implementations, "Implementation" },
r = { telescope_builtin.lsp_references, "References" },
s = { telescope_builtin.lsp_document_symbols, "Symbols" },
@ -29,7 +30,6 @@ local function map_keys()
},
},
k = { vim.lsp.buf.signature_help, "Signature help" },
D = { vim.lsp.buf.type_definition, "Type definition" },
rn = { vim.lsp.buf.rename, "Rename symbol" },
ca = { vim.lsp.buf.code_action, "Code action" },
e = { vim.diagnostic.open_float, "Open diagnostics" },