diff options
Diffstat (limited to 'fnl/plugins/lsp/mason-lspconfig.fnl')
-rw-r--r-- | fnl/plugins/lsp/mason-lspconfig.fnl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fnl/plugins/lsp/mason-lspconfig.fnl b/fnl/plugins/lsp/mason-lspconfig.fnl index fbf3d1d..429e948 100644 --- a/fnl/plugins/lsp/mason-lspconfig.fnl +++ b/fnl/plugins/lsp/mason-lspconfig.fnl @@ -1,6 +1,11 @@ ;; A bridge plugin between mason and lspconfig, handles installation of lsp and ;; setup hooks for client configurations. +(local textDocument-handlers + {:textDocument/hover (vim.lsp.with vim.lsp.handlers.hover {:border :single}) + :textDocument/signatureHelp (vim.lsp.with vim.lsp.handlers.signature_help + {:border :single})}) + (λ capabilities [] (let [blink-cmp (require :blink.cmp)] (blink-cmp.get_lsp_capabilities))) @@ -11,6 +16,7 @@ (let [lspconfig (. lspconfigs server) server-config (or (. servers server) {})] (tset server-config :capabilities (capabilities)) + (tset server-config :handlers textDocument-handlers) (lspconfig.setup server-config)))) (λ setup [] |