Add Zig and LSPs working
This commit is contained in:
parent
a829e7516d
commit
3552958d36
|
@ -116,5 +116,10 @@ return {
|
||||||
require("lspconfig")["pylsp"].setup({
|
require("lspconfig")["pylsp"].setup({
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- ZIG
|
||||||
|
require("lspconfig")["zls"].setup({
|
||||||
|
capabilities = capabilities,
|
||||||
|
})
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,8 +27,12 @@ return {
|
||||||
mason_lspconfig.setup({
|
mason_lspconfig.setup({
|
||||||
-- list of servers for mason to install
|
-- list of servers for mason to install
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
|
"bashls",
|
||||||
|
"clangd",
|
||||||
"lua_ls",
|
"lua_ls",
|
||||||
|
"ltex",
|
||||||
"pyright",
|
"pyright",
|
||||||
|
"zls",
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -275,6 +275,9 @@ return {
|
||||||
["zls"] = function()
|
["zls"] = function()
|
||||||
lspconfig["zls"].setup({
|
lspconfig["zls"].setup({
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
|
settings = {
|
||||||
|
cmd = { "~/.local/bin/zls" },
|
||||||
|
},
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue