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",
|
"jdtls",
|
||||||
"odinls",
|
"odinls",
|
||||||
"powershell_es",
|
"powershell_es",
|
||||||
|
"rust_analyzer",
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, server in ipairs(servers) do
|
for _, server in ipairs(servers) do
|
||||||
@@ -32,14 +33,21 @@ for _, server in ipairs(servers) do
|
|||||||
vim.lsp.enable(server)
|
vim.lsp.enable(server)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
vim.lsp.config("powershell_es", {
|
||||||
|
capabilities = cmp_cap,
|
||||||
|
bundle_path = "/opt/powershell-editor-services",
|
||||||
|
})
|
||||||
|
|
||||||
vim.lsp.config("rust_analyzer", {
|
vim.lsp.config("rust_analyzer", {
|
||||||
capabilities = cmp_cap,
|
capabilities = cmp_cap,
|
||||||
settings = {
|
settings = {
|
||||||
["rust-analyzer"] = {
|
["rust-analyzer"] = {
|
||||||
check = {
|
check = {
|
||||||
command = "clippy",
|
command = "clippy",
|
||||||
trigger = "onType", },
|
trigger = "onType",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
vim.lsp.enable("rust_analyzer")
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user