diff options
Diffstat (limited to 'fnl/config/lsp/servers.fnl')
-rw-r--r-- | fnl/config/lsp/servers.fnl | 44 |
1 files changed, 27 insertions, 17 deletions
diff --git a/fnl/config/lsp/servers.fnl b/fnl/config/lsp/servers.fnl index 6a41f69..2403c1a 100644 --- a/fnl/config/lsp/servers.fnl +++ b/fnl/config/lsp/servers.fnl @@ -1,19 +1,29 @@ ;; List of lsp that should be automatically installed and supported. -[:bashls - :clangd - :cssls - :dockerls - :hls - :html - :jsonls - :pyright - :rust_analyzer - :sqls - :sumneko_lua - :taplo - :terraformls - :texlab - :tflint - :yamlls - :zk] +{:bashls {} + :clangd {} + :cssls {} + :dockerls {} + :hls {} + :html {} + :jsonls {:init_options {:providerFormatter false} + :settings {:json {:schemas (let [schemastore (require :schemastore)] + (schemastore.json.schemas))}} + :setup {:commands {:Format [(fn [] + (vim.lsp.buf.range_formatting [] [0 0] + [(vim.fn.line "$" + 0)]))]}}} + :pyright {} + :rust_analyzer {:settings {:rust-analyzer {:lens {:enable true} + :checkOnSave {:command :clippy}}}} + :sqls {} + :sumneko_lua {:settings {:Lua {:completion {:callSnippet :Replace} + :workspace {:checkThirdParty false} + :runtime {:version :LuaJIT + :path (vim.split package.path ";")}}}} + :taplo {} + :terraformls {} + :texlab {} + :tflint {} + :yamlls {} + :zk {}} |