use fennel-ls from lspconfig

main
Alpha Chen 9 months ago
parent efb44f2b25
commit 70b2f76841
Signed by: alpha
SSH Key Fingerprint: SHA256:3fOT8fiYQG/aK9ntivV3Bqtg8AYQ7q4nV6ZgihOA20g

@ -14,22 +14,12 @@
(let [{: default_options} (require :lspconfig.ui.windows)]
(tset default_options :border :rounded))
;;; fennel-ls
(let [configs (require :lspconfig.configs)]
(tset configs :fennel-ls
{:default_config {:cmd [:/opt/homebrew/bin/fennel-ls]
:filetypes [:fennel]
:root_dir #(lspconfig.util.find_git_ancestor $1)
:settings {}}})
(tset configs :steep {:default_config {:cmd ["steep langserver"]
:filetypes [:ruby]
:root_dir #(lspconfig.util.find_git_ancestor $1)
:settings {}}}))
(let [{: fennel-ls} lspconfig]
(fennel-ls.setup (vim.lsp.protocol.make_client_capabilities)))
;; default hover windows to have borders
(let [{: hover} lsp.handlers]
(tset lsp.handlers :textDocument/hover (lsp.with hover {:border :rounded}))
@ -122,7 +112,7 @@
(setup-lsp :ansiblels)
(setup-lsp :elmls)
(setup-lsp :fennel-ls)
(setup-lsp :fennel_ls {:settings {:fennel-ls {:extra-globals :hs}}})
(setup-lsp :pylsp {:on_attach (on-attach-do attach-navic disable-fmt)})
(setup-lsp :pyright
{:on_attach on-attach

Loading…
Cancel
Save