This commit is contained in:
elkowar 2022-07-25 15:04:57 +02:00
parent 0ab9b35a9b
commit c1cb1aeff1
No known key found for this signature in database
GPG key ID: E321AD71B1D1F27F

View file

@ -62,7 +62,7 @@
((. lsp lsp-name :setup) merged-opts))) ((. lsp lsp-name :setup) merged-opts)))
(init-lsp :jsonls {:commands {:Format [ #(vim.lsp.buf.range_formatting [] [0 0] [(vim.fn.line "$") 0])]}}) (init-lsp :jsonls {:commands {:Format [ #(vim.lsp.buf.range_formatting [] [0 0] [(vim.fn.line "$") 0])]}})
;(init-lsp :denols {:root_dir (better_root_pattern [".git"] ["package.json"])}) (init-lsp :denols {:root_dir (better_root_pattern [".git"] ["package.json"])})
(init-lsp :hls {:settings {:languageServerHaskell {:formattingProvider "stylish-haskell"}}}) (init-lsp :hls {:settings {:languageServerHaskell {:formattingProvider "stylish-haskell"}}})
(init-lsp :ocamllsp) (init-lsp :ocamllsp)
(init-lsp :vimls) (init-lsp :vimls)
@ -82,6 +82,8 @@
;(init-lsp :clangd) ;(init-lsp :clangd)
;(init-lsp :ccls) ;(init-lsp :ccls)
(init-lsp :perlls)
(init-lsp :powershell_es {:bundle_path "/home/leon/powershell"}) (init-lsp :powershell_es {:bundle_path "/home/leon/powershell"})
;(ltex-ls.init) ;(ltex-ls.init)
@ -100,10 +102,10 @@
:less {:validate true} :less {:validate true}
:scss {:validate true}}}) :scss {:validate true}}})
(lsp.tsserver.setup {:root_dir (lsp.util.root_pattern "package.json") ;(lsp.tsserver.setup {:root_dir (lsp.util.root_pattern "package.json")
:on_attach (fn [client bufnr] ;:on_attach (fn [client bufnr]
(set client.resolved_capabilities.document_formatting false) ;(set client.resolved_capabilities.document_formatting false)
(on_attach client bufnr))}) ;(on_attach client bufnr))})
(let [rust-tools (require "rust-tools") (let [rust-tools (require "rust-tools")