mirror of
https://git.aramjonghu.nl/AramJonghu/nvim.git
synced 2026-03-22 01:39:54 +01:00
zig installed locally
This commit is contained in:
@@ -19,26 +19,11 @@ mason_lspconfig.setup({
|
||||
function(server_name)
|
||||
lspconfig[server_name].setup({capabilities = cmp_cap})
|
||||
end,
|
||||
zls = function()
|
||||
lspconfig.zls.setup({
|
||||
capabilities = cmp_cap,
|
||||
root_dir = lspconfig.util.root_pattern(".git", "build.zig",
|
||||
"zls.json"),
|
||||
settings = {
|
||||
zls = {
|
||||
enable_inlay_hints = true,
|
||||
enable_snippets = true,
|
||||
warn_style = true
|
||||
}
|
||||
}
|
||||
})
|
||||
vim.g.zig_fmt_parse_errors = 0
|
||||
vim.g.zig_fmt_autosave = 0
|
||||
end
|
||||
}
|
||||
})
|
||||
|
||||
-- locally installed lsps
|
||||
vim.lsp.enable('zls')
|
||||
vim.lsp.enable('denols')
|
||||
vim.lsp.enable('lua_ls')
|
||||
vim.lsp.enable('qmlls')
|
||||
|
||||
Reference in New Issue
Block a user