From 3df8130947ad44ef97cc3e022bc2551f1fff7765 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sat, 7 Jan 2023 22:03:56 +0100 Subject: Refactor lsp --- fnl/config/lsp/settings/jsonls.fnl | 10 ---------- fnl/config/lsp/settings/rust.fnl | 6 ------ fnl/config/lsp/settings/sumneko-lua.fnl | 8 -------- 3 files changed, 24 deletions(-) delete mode 100644 fnl/config/lsp/settings/jsonls.fnl delete mode 100644 fnl/config/lsp/settings/rust.fnl delete mode 100644 fnl/config/lsp/settings/sumneko-lua.fnl (limited to 'fnl/config/lsp/settings') diff --git a/fnl/config/lsp/settings/jsonls.fnl b/fnl/config/lsp/settings/jsonls.fnl deleted file mode 100644 index 55c6115..0000000 --- a/fnl/config/lsp/settings/jsonls.fnl +++ /dev/null @@ -1,10 +0,0 @@ -;; Json schema store catalog language server. -(module config.lsp.settings.jsonls {autoload {util config.util}}) - -(let [schemastore (util.prequire :schemastore)] - {:init_options {:providerFormatter false} - :settings {:json {:schemas (schemastore.json.schemas)}} - :setup {:commands {:Format [(fn [] - (vim.lsp.buf.range_formatting [] [0 0] - [(vim.fn.line "$" - 0)]))]}}}) diff --git a/fnl/config/lsp/settings/rust.fnl b/fnl/config/lsp/settings/rust.fnl deleted file mode 100644 index b7277a1..0000000 --- a/fnl/config/lsp/settings/rust.fnl +++ /dev/null @@ -1,6 +0,0 @@ -;; Configuration for rust langauage server. -(module config.lsp.settings.rust) - -(def opts - {:settings {:rust-analyzer {:lens {:enable true} - :checkOnSave {:command :clippy}}}}) diff --git a/fnl/config/lsp/settings/sumneko-lua.fnl b/fnl/config/lsp/settings/sumneko-lua.fnl deleted file mode 100644 index 83817f8..0000000 --- a/fnl/config/lsp/settings/sumneko-lua.fnl +++ /dev/null @@ -1,8 +0,0 @@ -;; Config for the sumneko-lua language server. -(module config.lsp.settings.sumneko-lua) - -(def- runtime {:version :LuaJIT :path (vim.split package.path ";")}) - -(def opts {:settings {:Lua {:completion {:callSnippet :Replace} - :workspace {:checkThirdParty false} - : runtime}}}) -- cgit v1.2.3-70-g09d2