mirror of
https://github.com/zoriya/flake.git
synced 2026-06-08 20:56:05 +00:00
Configure zigls
This commit is contained in:
@@ -105,7 +105,7 @@
|
||||
|
||||
kadan = mkSystem "kadan" "server" [
|
||||
({pkgs, ...}: {
|
||||
environment.systemPackages = with pkgs; [tmux python3Packages.guessit mediainfo];
|
||||
environment.systemPackages = with pkgs; [tmux python3Packages.guessit mediainfo yt-dlp];
|
||||
})
|
||||
];
|
||||
};
|
||||
|
||||
@@ -156,6 +156,17 @@ return {
|
||||
}
|
||||
}
|
||||
},
|
||||
zls = {
|
||||
settings = {
|
||||
enable_build_on_save = true,
|
||||
},
|
||||
on_new_config = function(new_config, new_root_dir)
|
||||
-- Simply disable the nix-shell wrapping and use zls from the shell.nix of the projects
|
||||
-- I use nightly builds of zigs/zls
|
||||
pcall(require("lspconfig").zls.document_config.default_config.on_new_config, new_config,
|
||||
new_root_dir)
|
||||
end,
|
||||
},
|
||||
},
|
||||
}
|
||||
end,
|
||||
@@ -320,7 +331,7 @@ return {
|
||||
css = { { "prettierd", "prettier" } },
|
||||
html = { { "prettierd", "prettier" } },
|
||||
sql = { "pg_format" },
|
||||
cs = { "csharpier" },
|
||||
-- cs = { "csharpier" },
|
||||
["*"] = { "injected" }
|
||||
},
|
||||
},
|
||||
|
||||
@@ -102,3 +102,5 @@ vim.cmd [[
|
||||
autocmd TextYankPost * silent!lua require('vim.highlight').on_yank({higroup = 'Visual', timeout = 200})
|
||||
augroup end
|
||||
]]
|
||||
|
||||
vim.g.zig_fmt_autosave = 0
|
||||
|
||||
Reference in New Issue
Block a user