neovim: changes to how we access nvf.lib
This commit is contained in:
		
							parent
							
								
									7868ac1529
								
							
						
					
					
						commit
						8d9c2a0ed2
					
				
					 39 changed files with 30 additions and 28 deletions
				
			
		
							
								
								
									
										5
									
								
								outputs/pkgs/ook-vim/config/plugins/cmp.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								outputs/pkgs/ook-vim/config/plugins/cmp.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,5 @@ | |||
| { | ||||
|   vim.autocomplete.nvim-cmp = { | ||||
|     enable = true; | ||||
|   }; | ||||
| } | ||||
							
								
								
									
										5
									
								
								outputs/pkgs/ook-vim/config/plugins/comments.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								outputs/pkgs/ook-vim/config/plugins/comments.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,5 @@ | |||
| { | ||||
|   vim.comments = { | ||||
|     comment-nvim.enable = true; | ||||
|   }; | ||||
| } | ||||
							
								
								
									
										15
									
								
								outputs/pkgs/ook-vim/config/plugins/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								outputs/pkgs/ook-vim/config/plugins/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,15 @@ | |||
| { | ||||
|   imports = [ | ||||
|     ./telescope.nix | ||||
|     ./filetree.nix | ||||
|     ./cmp.nix | ||||
|     ./terminal.nix | ||||
|     ./git.nix | ||||
|     ./projects.nix | ||||
|     ./utility.nix | ||||
|     ./ui.nix | ||||
|     ./languages | ||||
|     ./statusline.nix | ||||
|     ./snippets.nix | ||||
|   ]; | ||||
| } | ||||
							
								
								
									
										17
									
								
								outputs/pkgs/ook-vim/config/plugins/filetree.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								outputs/pkgs/ook-vim/config/plugins/filetree.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,17 @@ | |||
| { | ||||
|   vim.filetree = { | ||||
|     neo-tree = { | ||||
|       enable = true; | ||||
|       setupOpts = { | ||||
|         filesystem = { | ||||
|           hijack_netrw_behavior = "open_current"; | ||||
|           follow_current_file.enabled = true; | ||||
|         }; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
|   vim.maps.normal."<C-e>" = { | ||||
|     desc = "Toggle Tree"; | ||||
|     action = "<cmd>Neotree toggle reveal<cr>"; | ||||
|   }; | ||||
| } | ||||
							
								
								
									
										9
									
								
								outputs/pkgs/ook-vim/config/plugins/git.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								outputs/pkgs/ook-vim/config/plugins/git.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,9 @@ | |||
| { | ||||
|   vim.git = { | ||||
|     enable = true; | ||||
|     gitsigns = { | ||||
|       enable = true; | ||||
|       codeActions.enable = false; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
							
								
								
									
										5
									
								
								outputs/pkgs/ook-vim/config/plugins/languages/bash.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								outputs/pkgs/ook-vim/config/plugins/languages/bash.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,5 @@ | |||
| { | ||||
|   vim.languages.bash = { | ||||
|     enable = true; | ||||
|   }; | ||||
| } | ||||
							
								
								
									
										6
									
								
								outputs/pkgs/ook-vim/config/plugins/languages/css.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								outputs/pkgs/ook-vim/config/plugins/languages/css.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,6 @@ | |||
| { | ||||
|   vim.languages.css = { | ||||
|     enable = true; | ||||
|     format.enable = true; | ||||
|   }; | ||||
| } | ||||
							
								
								
									
										21
									
								
								outputs/pkgs/ook-vim/config/plugins/languages/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								outputs/pkgs/ook-vim/config/plugins/languages/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,21 @@ | |||
| { | ||||
|   imports = [ | ||||
|     ./nix.nix | ||||
|     ./lsp.nix | ||||
|     ./bash.nix | ||||
|     ./treesitter.nix | ||||
|     ./html.nix | ||||
|     ./ts.nix | ||||
|     ./go.nix | ||||
|     ./lua.nix | ||||
|   ]; | ||||
| 
 | ||||
|   vim.languages = { | ||||
|     enableLSP = true; | ||||
|     enableTreesitter = true; | ||||
|     enableFormat = true; | ||||
|     enableExtraDiagnostics = true; | ||||
| 
 | ||||
|     typst.enable = true; | ||||
|   }; | ||||
| } | ||||
							
								
								
									
										5
									
								
								outputs/pkgs/ook-vim/config/plugins/languages/go.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								outputs/pkgs/ook-vim/config/plugins/languages/go.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,5 @@ | |||
| { | ||||
|   vim.languages.go = { | ||||
|     enable = true; | ||||
|   }; | ||||
| } | ||||
							
								
								
									
										5
									
								
								outputs/pkgs/ook-vim/config/plugins/languages/html.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								outputs/pkgs/ook-vim/config/plugins/languages/html.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,5 @@ | |||
| { | ||||
|   vim.languages.html = { | ||||
|     enable = true; | ||||
|   }; | ||||
| } | ||||
							
								
								
									
										8
									
								
								outputs/pkgs/ook-vim/config/plugins/languages/lsp.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								outputs/pkgs/ook-vim/config/plugins/languages/lsp.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,8 @@ | |||
| { | ||||
|   vim.lsp = { | ||||
|     formatOnSave = true; | ||||
|     lspkind.enable = true; | ||||
|     lspSignature.enable = true; | ||||
|     trouble = {enable = true;}; | ||||
|   }; | ||||
| } | ||||
							
								
								
									
										5
									
								
								outputs/pkgs/ook-vim/config/plugins/languages/lua.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								outputs/pkgs/ook-vim/config/plugins/languages/lua.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,5 @@ | |||
| { | ||||
|   vim.languages.lua = { | ||||
|     enable = true; | ||||
|   }; | ||||
| } | ||||
							
								
								
									
										11
									
								
								outputs/pkgs/ook-vim/config/plugins/languages/markdown.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								outputs/pkgs/ook-vim/config/plugins/languages/markdown.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,11 @@ | |||
| { | ||||
|   vim = { | ||||
|     languages.markdown = { | ||||
|       enable = true; | ||||
|       format = true; | ||||
|     }; | ||||
|     utility = { | ||||
|       preview.markdownPreview = {enable = true;}; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
							
								
								
									
										5
									
								
								outputs/pkgs/ook-vim/config/plugins/languages/nix.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								outputs/pkgs/ook-vim/config/plugins/languages/nix.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,5 @@ | |||
| { | ||||
|   vim.languages.nix = { | ||||
|     enable = true; | ||||
|   }; | ||||
| } | ||||
							
								
								
									
										11
									
								
								outputs/pkgs/ook-vim/config/plugins/languages/treesitter.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								outputs/pkgs/ook-vim/config/plugins/languages/treesitter.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,11 @@ | |||
| {pkgs, ...}: { | ||||
|   vim.treesitter = { | ||||
|     enable = true; | ||||
|     fold = true; | ||||
|     grammars = with pkgs.vimPlugins.nvim-treesitter.builtGrammars; [ | ||||
|       kdl | ||||
|       regex | ||||
|       fish | ||||
|     ]; | ||||
|   }; | ||||
| } | ||||
							
								
								
									
										5
									
								
								outputs/pkgs/ook-vim/config/plugins/languages/ts.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								outputs/pkgs/ook-vim/config/plugins/languages/ts.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,5 @@ | |||
| { | ||||
|   vim.languages.ts = { | ||||
|     enable = true; | ||||
|   }; | ||||
| } | ||||
							
								
								
									
										16
									
								
								outputs/pkgs/ook-vim/config/plugins/projects.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								outputs/pkgs/ook-vim/config/plugins/projects.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,16 @@ | |||
| { | ||||
|   vim.projects = { | ||||
|     project-nvim = { | ||||
|       enable = true; | ||||
|       setupOpts = { | ||||
|         manualMode = false; | ||||
|         detectionMethods = ["lsp" "pattern"]; | ||||
|         patterns = [ | ||||
|           ".git" | ||||
|           "index.*" | ||||
|           "flake.nix" | ||||
|         ]; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
							
								
								
									
										5
									
								
								outputs/pkgs/ook-vim/config/plugins/snippets.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								outputs/pkgs/ook-vim/config/plugins/snippets.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,5 @@ | |||
| { | ||||
|   vim.snippets.luasnip = { | ||||
|     enable = true; | ||||
|   }; | ||||
| } | ||||
							
								
								
									
										52
									
								
								outputs/pkgs/ook-vim/config/plugins/statusline.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										52
									
								
								outputs/pkgs/ook-vim/config/plugins/statusline.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,52 @@ | |||
| { | ||||
|   vim.statusline.lualine = { | ||||
|     enable = true; | ||||
|     activeSection = { | ||||
|       a = [ | ||||
|         #lua | ||||
|         '' | ||||
|           { | ||||
|             "mode", | ||||
|             icons_enabled = true, | ||||
|             seperator = {left = "", right = " ", } | ||||
|           } | ||||
|         '' | ||||
|         #lua | ||||
|         '' | ||||
|           { | ||||
|             draw_empty = true, | ||||
|             seperator = { left = " ", right = " " } | ||||
|           } | ||||
|         '' | ||||
|       ]; | ||||
|       b = [ | ||||
|         #lua | ||||
|         '' | ||||
|           { | ||||
|             "", | ||||
|             draw_empty = true, | ||||
|           } | ||||
|         '' | ||||
|       ]; | ||||
|       c = ["filename"]; | ||||
|       x = [ | ||||
|         # lua | ||||
|         '' | ||||
|           { | ||||
|             "diagnostics", | ||||
|               sources = {'nvim_lsp', 'nvim_diagnostic', 'nvim_diagnostic', 'vim_lsp'}, | ||||
|               symbols = {error = ' ', warn = ' ', info = ' ', hint = ' '}, | ||||
|               colored = true, | ||||
|               update_in_insert = false, | ||||
|               always_visible = false, | ||||
|               diagnostics_color = { | ||||
|                 color_error = { fg = 'red' }, | ||||
|                 color_warn = { fg = 'yellow' }, | ||||
|                 color_info = { fg = 'cyan' }, | ||||
|               } | ||||
|           } | ||||
|         '' | ||||
|       ]; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
							
								
								
									
										16
									
								
								outputs/pkgs/ook-vim/config/plugins/telescope.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								outputs/pkgs/ook-vim/config/plugins/telescope.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,16 @@ | |||
| { | ||||
|   vim.telescope = { | ||||
|     enable = true; | ||||
|     mappings = { | ||||
|       findFiles = "<leader>ff"; | ||||
|       liveGrep = "<leader>/"; | ||||
| 
 | ||||
|       open = null; | ||||
|       gitCommits = null; | ||||
|       gitBufferCommits = null; | ||||
|       gitBranches = null; | ||||
|       gitStatus = null; | ||||
|       gitStash = null; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
							
								
								
									
										11
									
								
								outputs/pkgs/ook-vim/config/plugins/terminal.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								outputs/pkgs/ook-vim/config/plugins/terminal.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,11 @@ | |||
| { | ||||
|   vim.terminal = { | ||||
|     toggleterm = { | ||||
|       enable = true; | ||||
|       lazygit = { | ||||
|         enable = true; | ||||
|         direction = "float"; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
							
								
								
									
										33
									
								
								outputs/pkgs/ook-vim/config/plugins/ui.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								outputs/pkgs/ook-vim/config/plugins/ui.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,33 @@ | |||
| { | ||||
|   vim = { | ||||
|     ui = { | ||||
|       borders = { | ||||
|         enable = true; | ||||
|         globalStyle = "single"; | ||||
|       }; | ||||
| 
 | ||||
|       # better cmd line | ||||
|       noice.enable = true; | ||||
| 
 | ||||
|       colorizer.enable = true; | ||||
|       illuminate.enable = true; | ||||
|     }; | ||||
|     # < https://github.com/NotAShelf/nvf/tree/main/modules/plugins/visuals > | ||||
|     visuals = { | ||||
|       # icons that other plugins depend on. | ||||
|       nvim-web-devicons.enable = true; | ||||
|       fidget-nvim.enable = true; | ||||
| 
 | ||||
|       # indent lines | ||||
|       indent-blankline = { | ||||
|         enable = true; | ||||
|         setupOpts = { | ||||
|           scope = { | ||||
|             enabled = false; | ||||
|             injected_languages = false; | ||||
|           }; | ||||
|         }; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
							
								
								
									
										15
									
								
								outputs/pkgs/ook-vim/config/plugins/utility.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								outputs/pkgs/ook-vim/config/plugins/utility.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,15 @@ | |||
| { | ||||
|   vim = { | ||||
|     binds.whichKey = { | ||||
|       enable = true; | ||||
|     }; | ||||
|     utility = { | ||||
|       preview = { | ||||
|         markdownPreview = { | ||||
|           enable = true; | ||||
|           autoStart = true; | ||||
|         }; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue