added zig lsp.
This commit is contained in:
		
							parent
							
								
									a08109dc84
								
							
						
					
					
						commit
						079ef3b1ce
					
				
					 5 changed files with 29 additions and 10 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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
  ];
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,12 +4,13 @@
 | 
			
		|||
  lib,
 | 
			
		||||
  ...
 | 
			
		||||
}: {
 | 
			
		||||
  config =
 | 
			
		||||
    lib.mkIf (config.user.nvim.enable-lsp && config.user.nvim.enable)
 | 
			
		||||
    {
 | 
			
		||||
  config = lib.mkIf (config.user.nvim.enable-lsp && config.user.nvim.enable) {
 | 
			
		||||
    programs.nixvim = {
 | 
			
		||||
        plugins.rustaceanvim = {
 | 
			
		||||
      plugins.lsp.servers.zls = {
 | 
			
		||||
        enable = true;
 | 
			
		||||
        settings = {
 | 
			
		||||
          enable_build_on_save = true;
 | 
			
		||||
        };
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										10
									
								
								modules/home-manager/nvim/lsp/zig.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								modules/home-manager/nvim/lsp/zig.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,10 @@
 | 
			
		|||
{
 | 
			
		||||
  config,
 | 
			
		||||
  pkgs,
 | 
			
		||||
  lib,
 | 
			
		||||
  ...
 | 
			
		||||
}: {
 | 
			
		||||
  config =
 | 
			
		||||
    lib.mkIf (config.user.nvim.enable-lsp && config.user.nvim.enable) {
 | 
			
		||||
    };
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue