update lsp settings

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

@ -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()

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

Loading…
Cancel
Save