summaryrefslogtreecommitdiff
path: root/plugin/lsp.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/lsp.lua')
-rw-r--r--plugin/lsp.lua12
1 files changed, 5 insertions, 7 deletions
diff --git a/plugin/lsp.lua b/plugin/lsp.lua
index b652f71..ef1a90b 100644
--- a/plugin/lsp.lua
+++ b/plugin/lsp.lua
@@ -26,11 +26,7 @@ local lsp_servers = {
binary = "vscode-eslint-language-server",
},
- efm = {
- binary = "efm-langserver",
- extraOptions = require("getchoo.plugins.efmls"),
- },
-
+ -- TODO: I WANT STYLUA BACK!!
lua_ls = {
binary = "lua-language-server",
extraOptions = {
@@ -38,7 +34,7 @@ local lsp_servers = {
Lua = {
runtime = { version = "LuaJIT" },
diagnostics = { globals = "vim" },
- workspace = { library = vim.api.nvim_get_runtime_file("", true) },
+ workspace = { checkThirdPaty = false, library = { vim.env.VIMRUNTIME } },
},
},
},
@@ -84,7 +80,9 @@ local lsp_servers = {
binary = "rust-analyzer",
extraOptions = {
settings = {
- checkOnSave = { command = "clippy" },
+ ["rust-analyzer"] = {
+ check = { command = "clippy" },
+ },
},
},
},