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