add: nixvim bones; refactoring
This commit is contained in:
		
							parent
							
								
									546ece2d97
								
							
						
					
					
						commit
						885d9f952b
					
				
					 8 changed files with 232 additions and 33 deletions
				
			
		
							
								
								
									
										0
									
								
								home/modules/console/editor/nvim/plugins/indent.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								home/modules/console/editor/nvim/plugins/indent.nix
									
										
									
									
									
										Normal file
									
								
							
							
								
								
									
										23
									
								
								home/modules/console/editor/nvim/plugins/lualine.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								home/modules/console/editor/nvim/plugins/lualine.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,23 @@
 | 
			
		|||
{ config, lib, ... }:
 | 
			
		||||
 | 
			
		||||
let
 | 
			
		||||
  cfg = config.homeModules.console.editor.nvim.plugins;
 | 
			
		||||
in
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
  config = lib.mkif cfg.lualine {
 | 
			
		||||
    programs.nixvim.plugins.lualine = {
 | 
			
		||||
      enable = true;
 | 
			
		||||
      theme = "base16";
 | 
			
		||||
      globalstatus = true;
 | 
			
		||||
      sections = {
 | 
			
		||||
        lualine_a = ["mode"];
 | 
			
		||||
        lualine_b = ["branch"];
 | 
			
		||||
        lualine_c = ["filename" "diff"];
 | 
			
		||||
        lualine_x = ["diagnostics"];
 | 
			
		||||
        lualine_y = ["fileformat"];
 | 
			
		||||
        lualine_z = ["filetype"];
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue