Add Zig and LSPs working

This commit is contained in:
Eduardo Cueto-Mendoza 2025-01-12 10:59:24 +00:00
parent a829e7516d
commit 3552958d36
Signed by: TastyPancakes
GPG Key ID: 941DF56C7242C3F1
3 changed files with 12 additions and 0 deletions

View File

@ -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,
} }

View File

@ -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",
}, },
}) })

View File

@ -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,
}) })