update lsp settings

main
Nick Zana 8 months ago
parent 79d94753f4
commit 082162454f

@ -35,23 +35,16 @@ lsp.nvim_workspace()
lsp.configure('rust_analyzer', { lsp.configure('rust_analyzer', {
settings = { settings = {
["rust-analyzer"] = { ["rust-analyzer"] = {
cargo = {
features = "all",
},
procMacro = { procMacro = {
enable = true, enable = true
},
checkOnSave = {
command = 'clippy',
extraArgs = { "--", "-W", "clippy::pedantic" }
},
}, },
} }
}
}) })
lsp.configure('tsserver', { require'lspconfig'.tsserver.setup {
cmd = { "npx", "typescript-language-server", "--stdio" }, cmd = { "npx", "typescript-language-server", "--stdio" },
}) }
lsp.configure('html', { lsp.configure('html', {
cmd = { "npx", "vscode-html-language-server", "--stdio" }, cmd = { "npx", "vscode-html-language-server", "--stdio" },
@ -68,6 +61,6 @@ lsp.configure('clangd', {})
lsp.configure('pylsp', {}) lsp.configure('pylsp', {})
lsp.setup_servers({'tsserver', 'rust_analyzer', 'html', 'texlab', 'clangd', 'pylsp'}) lsp.setup_servers({'rust_analyzer', 'html', 'texlab', 'clangd', 'pylsp'})
lsp.setup() lsp.setup()

@ -25,7 +25,6 @@ local plugins = require('packer').startup(function(use)
use { use {
'https://github.com/github/copilot.vim', 'https://github.com/github/copilot.vim',
opt = true,
} }
-- lsp -- lsp

Loading…
Cancel
Save