mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-11-15 14:33:26 +01:00
mzte-nv: specify LSP offsetEncoding
This commit is contained in:
parent
2f357bac81
commit
311deb4421
1 changed files with 3 additions and 4 deletions
|
@ -5,8 +5,6 @@
|
||||||
(var args args)
|
(var args args)
|
||||||
(when (not args)
|
(when (not args)
|
||||||
(set args {}))
|
(set args {}))
|
||||||
(when (not (. args :on_attach))
|
|
||||||
(tset args :on_attach `check-conjure))
|
|
||||||
(tset args :capabilities `caps)
|
(tset args :capabilities `caps)
|
||||||
`((. lspc ,conf :setup) ,args))
|
`((. lspc ,conf :setup) ,args))
|
||||||
|
|
||||||
|
@ -22,12 +20,13 @@
|
||||||
(tset caps :textDocument :foldingRange
|
(tset caps :textDocument :foldingRange
|
||||||
{:dynamicRegistration false :lineFoldingOnly true})
|
{:dynamicRegistration false :lineFoldingOnly true})
|
||||||
|
|
||||||
|
(tset caps :offsetEncoding :utf-8)
|
||||||
|
|
||||||
(fn disable-formatter [client _]
|
(fn disable-formatter [client _]
|
||||||
(tset client :server_capabilities :documentFormattingRangeProvider false))
|
(tset client :server_capabilities :documentFormattingRangeProvider false))
|
||||||
|
|
||||||
(setup :cl-lsp)
|
(setup :cl-lsp)
|
||||||
(setup :clangd {:on_attach (fn [c b] (disable-formatter c b)
|
(setup :clangd {:on_attach disable-formatter})
|
||||||
(check-conjure c b))})
|
|
||||||
|
|
||||||
(setup :cssls)
|
(setup :cssls)
|
||||||
(setup :elixirls {:cmd [:elixir-ls]})
|
(setup :elixirls {:cmd [:elixir-ls]})
|
||||||
|
|
Loading…
Reference in a new issue