diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-07-10 13:31:13 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-07-10 13:31:13 +0200 |
commit | 0115a01deb8a8e19436935b96c70606f5139d7e1 (patch) | |
tree | 35366f5ca3c2edadb94aac437c6e9229e787633a /fnl | |
parent | 4cd4582247b1198213fcf8f5fcde9d555bc3c968 (diff) |
Refactor lsp keymaps
Diffstat (limited to 'fnl')
-rw-r--r-- | fnl/config/lsp/handlers.fnl | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fnl/config/lsp/handlers.fnl b/fnl/config/lsp/handlers.fnl index 1b20365..4cf904c 100644 --- a/fnl/config/lsp/handlers.fnl +++ b/fnl/config/lsp/handlers.fnl @@ -37,16 +37,14 @@ "<cmd>lua vim.lsp.buf.declaration()<CR>" opts) (nvim.buf_set_keymap bufnr :n :gd "<cmd>lua vim.lsp.buf.definition()<CR>" opts) - (nvim.buf_set_keymap bufnr :n :K "<cmd>lua vim.lsp.buf.hover()<CR>" - opts) (nvim.buf_set_keymap bufnr :n :gI "<cmd>lua vim.lsp.buf.implementation()<CR>" opts) (nvim.buf_set_keymap bufnr :n :gr "<cmd>lua vim.lsp.buf.references()<CR>" opts) (nvim.buf_set_keymap bufnr :n :gl "<cmd>lua vim.diagnostic.open_float()<CR>" opts) - (nvim.buf_set_keymap bufnr :n :<leader>q - "<cmd>lua vim.diagnostic.setloclist()<CR>" opts))) + (nvim.buf_set_keymap bufnr :n :gs + "<cmd>lua vim.lsp.buf.signature_help()<CR>" opts))) (defn on-attach [client bufnr] (if (= client.name :html) (set client.resolved_capabilities.document_formatting |