diff --git a/lua/lsp.lua b/lua/lsp.lua index c98e739..f772153 100644 --- a/lua/lsp.lua +++ b/lua/lsp.lua @@ -35,23 +35,16 @@ lsp.nvim_workspace() lsp.configure('rust_analyzer', { settings = { ["rust-analyzer"] = { - cargo = { - features = "all", - }, procMacro = { - enable = true, - }, - checkOnSave = { - command = 'clippy', - extraArgs = { "--", "-W", "clippy::pedantic" } + enable = true }, - }, + } } }) -lsp.configure('tsserver', { +require'lspconfig'.tsserver.setup { cmd = { "npx", "typescript-language-server", "--stdio" }, -}) +} lsp.configure('html', { cmd = { "npx", "vscode-html-language-server", "--stdio" }, @@ -68,6 +61,6 @@ lsp.configure('clangd', {}) lsp.configure('pylsp', {}) -lsp.setup_servers({'tsserver', 'rust_analyzer', 'html', 'texlab', 'clangd', 'pylsp'}) +lsp.setup_servers({'rust_analyzer', 'html', 'texlab', 'clangd', 'pylsp'}) lsp.setup() diff --git a/lua/plugins.lua b/lua/plugins.lua index bab1e84..0d5addf 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -25,7 +25,6 @@ local plugins = require('packer').startup(function(use) use { 'https://github.com/github/copilot.vim', - opt = true, } -- lsp