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