Simply lsp init
This commit is contained in:
parent
ed70bfe63c
commit
3f81479bc6
6
init.fnl
6
init.fnl
@ -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 {
|
||||||
|
Reference in New Issue
Block a user