diff options
author | Steven Le Rouzic <slerouzic@siradel.com> | 2023-04-18 15:47:19 +0200 |
---|---|---|
committer | Steven Le Rouzic <slerouzic@siradel.com> | 2023-04-18 15:47:19 +0200 |
commit | cbe1739819fd6b63d34ce4cc35e9b2e345a74bc7 (patch) | |
tree | 6062a08082a0f846ec36e2cb5b11f11b30fafe69 /lua | |
parent | c674d0ab5c2b538be5cfb6777ae45c9e68374694 (diff) |
s-f12
Diffstat (limited to 'lua')
-rw-r--r-- | lua/lsp.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lua/lsp.lua b/lua/lsp.lua index ec50aec..2f9539d 100644 --- a/lua/lsp.lua +++ b/lua/lsp.lua @@ -43,6 +43,10 @@ local lsp_on_attach = function(client, b) nmap("<f2>", vim.lsp.buf.rename, "Rename symbol") nmap("<leader>ca", vim.lsp.buf.code_action, "Code action") nmap("<f12>", vim.lsp.buf.definition, "Go to definition") + nmap("<s-f12>", function() + vim.cmd("sp") + vim.lsp.buf.definition() + end, "Go to definition") nmap("<leader>fr", require("telescope.builtin").lsp_references, "Find references") nmap("<c-o>", require("telescope.builtin").lsp_document_symbols, "Find document symbols") nmap("<c-h>", vim.lsp.buf.hover, "Signature help") |