added zig lsp.
This commit is contained in:
parent
a08109dc84
commit
3ac448bfa9
4 changed files with 29 additions and 4 deletions
|
@ -9,6 +9,14 @@
|
|||
# Let Home Manager install and manage itself on non-nixos systems.
|
||||
programs.home-manager.enable = config.targets.genericLinux.enable;
|
||||
|
||||
services.home-manager.autoExpire = {
|
||||
enable = true;
|
||||
store = {
|
||||
cleanup = true;
|
||||
options = "--delete-older-than 30d";
|
||||
};
|
||||
};
|
||||
|
||||
# enable flakes on non-nixos systems
|
||||
nix =
|
||||
lib.mkIf config.targets.genericLinux.enable
|
||||
|
|
|
@ -11,9 +11,9 @@ in {
|
|||
services.homepage-dashboard = {
|
||||
enable = true;
|
||||
environmentFile = ''${pkgs.writeTextFile {
|
||||
name = "envFile";
|
||||
text ="HOMEPAGE_ALLOWED_HOSTS=${baseurl}";
|
||||
}}'';
|
||||
name = "envFile";
|
||||
text = "HOMEPAGE_ALLOWED_HOSTS=${baseurl}";
|
||||
}}'';
|
||||
settings = {
|
||||
theme = "dark";
|
||||
color = "slate";
|
||||
|
|
|
@ -31,7 +31,6 @@
|
|||
ts_ls.enable = true;
|
||||
uiua.enable = true;
|
||||
yamlls.enable = true;
|
||||
zls.enable = true;
|
||||
};
|
||||
};
|
||||
plugins.cmp.settings.sources = [
|
||||
|
@ -188,5 +187,6 @@
|
|||
imports = [
|
||||
./rustaceanvim.nix
|
||||
./clangd.nix
|
||||
./zig.nix
|
||||
];
|
||||
}
|
||||
|
|
17
modules/home-manager/nvim/lsp/zig.nix
Normal file
17
modules/home-manager/nvim/lsp/zig.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
config = lib.mkIf (config.user.nvim.enable-lsp && config.user.nvim.enable) {
|
||||
programs.nixvim = {
|
||||
plugins.lsp.servers.zls = {
|
||||
enable = true;
|
||||
settings = {
|
||||
enable_build_on_save = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue