mirror of
https://git.aramjonghu.nl/AramJonghu/nvim.git
synced 2026-06-07 00:48:24 +02:00
ps1 linter/lsp
This commit is contained in:
@@ -23,6 +23,7 @@ local servers = {
|
||||
"jdtls",
|
||||
"odinls",
|
||||
"powershell_es",
|
||||
"rust_analyzer",
|
||||
}
|
||||
|
||||
for _, server in ipairs(servers) do
|
||||
@@ -32,14 +33,21 @@ for _, server in ipairs(servers) do
|
||||
vim.lsp.enable(server)
|
||||
end
|
||||
|
||||
vim.lsp.config("powershell_es", {
|
||||
capabilities = cmp_cap,
|
||||
bundle_path = "/opt/powershell-editor-services",
|
||||
})
|
||||
|
||||
vim.lsp.config("rust_analyzer", {
|
||||
capabilities = cmp_cap,
|
||||
settings = {
|
||||
["rust-analyzer"] = {
|
||||
check = {
|
||||
command = "clippy",
|
||||
trigger = "onType", },
|
||||
trigger = "onType",
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
vim.lsp.enable("rust_analyzer")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user