refactor(flake-parts): initial flake-parts configuration
This commit is contained in:
		
							parent
							
								
									8f67be9e68
								
							
						
					
					
						commit
						5603001d65
					
				
					 230 changed files with 380 additions and 717 deletions
				
			
		
							
								
								
									
										28
									
								
								inputs/home/modules/console/editor/nvim/plugins/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								inputs/home/modules/console/editor/nvim/plugins/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,28 @@ | |||
| { lib, ... }: | ||||
| 
 | ||||
| { | ||||
|   imports = [  | ||||
|     ./indent.nix | ||||
|     ./telescope.nix | ||||
|     ./lualine.nix | ||||
|   ]; | ||||
| 
 | ||||
|   options.homeModules.console.editor.nvim.plugins = { | ||||
|     indentBlankline = lib.mkOption { | ||||
|       type = lib.types.bool; | ||||
|       default = false; | ||||
|       description = "Enable indent-blankline nvim plugin module"; | ||||
|     }; | ||||
|     lualine = lib.mkOption { | ||||
|       type = lib.types.bool; | ||||
|       default = false; | ||||
|       description = "Enable lualine nvim plugin module"; | ||||
|     }; | ||||
|     telescope = lib.mkOption { | ||||
|       type = lib.types.bool; | ||||
|       default = false; | ||||
|       description = "Enable telescope nvim plugin module"; | ||||
|     }; | ||||
|   }; | ||||
|    | ||||
| } | ||||
							
								
								
									
										13
									
								
								inputs/home/modules/console/editor/nvim/plugins/indent.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								inputs/home/modules/console/editor/nvim/plugins/indent.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,13 @@ | |||
| { config, lib, ... }: | ||||
| 
 | ||||
| let | ||||
|   cfg = config.homeModules.console.editor.nvim.plugins; | ||||
| in | ||||
| 
 | ||||
| { | ||||
|   config = lib.mkIf cfg.indentBlankline { | ||||
|     programs.nixvim.plugins.indent-blankline = { | ||||
|       enable = true; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
							
								
								
									
										23
									
								
								inputs/home/modules/console/editor/nvim/plugins/lualine.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								inputs/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"]; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
|  | @ -0,0 +1,41 @@ | |||
| { config, lib, ... }: | ||||
| 
 | ||||
| let | ||||
|   cfg = config.homeModules.console.editor.nvim.plugins; | ||||
| in | ||||
| 
 | ||||
| { | ||||
|   config = lib.mkIf cfg.telescope { | ||||
|     programs.nixvim = { | ||||
|       plugins.telescope = { | ||||
|         enable = true; | ||||
|         extensions = { | ||||
|           fzf-native.enable = true; | ||||
|           frecency.enable = true; | ||||
|         }; | ||||
| 
 | ||||
|         keymaps = { | ||||
|           "<leader>ff" = "find_files"; | ||||
|           "<leader>fg" = "live_grep"; | ||||
|           "<leader>b" = "buffers"; | ||||
|           "<leader>fh" = "help_tags"; | ||||
|           "<leader>fd" = "diagnostics"; | ||||
| 
 | ||||
|           "<C-p>" = "git_files"; | ||||
|           "<leader>p" = "oldfiles"; | ||||
|           "<C-f>" = "live_grep"; | ||||
|         }; | ||||
| 
 | ||||
|         keymapsSilent = true; | ||||
| 
 | ||||
|         defaults = { | ||||
|           file_ignore_patterns = [ | ||||
|             "^.git/" | ||||
|             "^data/" | ||||
|           ]; | ||||
|           set_env.COLORTERM = "truecolor"; | ||||
|         }; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue