Simply lsp init

This commit is contained in:
Alexander Rosenberg 2022-11-29 07:00:48 -08:00
parent ed70bfe63c
commit 3f81479bc6
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

View File

@ -434,6 +434,10 @@
(do (tset opts last_key val) (do (tset opts last_key val)
(set last_key nil)) (set last_key nil))
(set last_key val))) (set last_key val)))
(if (not opts.on_attach)
(tset opts :on_attach `on_attach))
(if (not opts.capabilities)
(tset opts :capabilities `lsp_cap))
`((. (. lsp ,name) :setup) ,opts)) `((. (. lsp ,name) :setup) ,opts))
`((. (. lsp ,name) :setup) default_config))) `((. (. lsp ,name) :setup) default_config)))
(setup_server! :ccls) (setup_server! :ccls)
@ -442,8 +446,6 @@
(setup_server! :rust_analyzer) (setup_server! :rust_analyzer)
(setup_server! :texlab) (setup_server! :texlab)
(setup_server! :sumneko_lua (setup_server! :sumneko_lua
:on_attach on_attach
:capabilities lsp_cap
:settings { :settings {
:Lua { :Lua {
:runtime { :runtime {