mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 11:02:37 +00:00 
			
		
		
		
	Merge branch 'main' into main
This commit is contained in:
		
				commit
				
					
						2e3c479e84
					
				
			
		
					 3 changed files with 15 additions and 7 deletions
				
			
		|  | @ -51,6 +51,7 @@ | ||||||
| 
 | 
 | ||||||
| - Remove `vim.notes.obsidian.setupOpts.dir`, which was set by default. Fixes | - Remove `vim.notes.obsidian.setupOpts.dir`, which was set by default. Fixes | ||||||
|   issue with setting the workspace directory. |   issue with setting the workspace directory. | ||||||
|  | - Add `vim.snippets.luasnip.setupOpts`, which was previously missing. | ||||||
| - Add `"prettierd"` as a formatter option in `vim.languages.markdown.format.type`. | - Add `"prettierd"` as a formatter option in `vim.languages.markdown.format.type`. | ||||||
| 
 | 
 | ||||||
| [kaktu5](https://github.com/kaktu5): | [kaktu5](https://github.com/kaktu5): | ||||||
|  |  | ||||||
|  | @ -9,12 +9,15 @@ | ||||||
| in { | in { | ||||||
|   config = mkIf cfg.enable { |   config = mkIf cfg.enable { | ||||||
|     vim = { |     vim = { | ||||||
|       lazy.plugins = { |       lazy.plugins.luasnip = { | ||||||
|         luasnip = { |         package = "luasnip"; | ||||||
|           package = "luasnip"; | 
 | ||||||
|           lazy = true; |         lazy = true; | ||||||
|           after = cfg.loaders; | 
 | ||||||
|         }; |         setupModule = "luasnip"; | ||||||
|  |         inherit (cfg) setupOpts; | ||||||
|  | 
 | ||||||
|  |         after = cfg.loaders; | ||||||
|       }; |       }; | ||||||
|       startPlugins = cfg.providers; |       startPlugins = cfg.providers; | ||||||
|       autocomplete.nvim-cmp = { |       autocomplete.nvim-cmp = { | ||||||
|  |  | ||||||
|  | @ -1,7 +1,7 @@ | ||||||
| {lib, ...}: let | {lib, ...}: let | ||||||
|   inherit (lib.options) mkEnableOption mkOption literalExpression literalMD; |   inherit (lib.options) mkEnableOption mkOption literalExpression literalMD; | ||||||
|   inherit (lib.types) listOf lines; |   inherit (lib.types) listOf lines; | ||||||
|   inherit (lib.nvim.types) pluginType; |   inherit (lib.nvim.types) pluginType mkPluginSetupOption; | ||||||
| in { | in { | ||||||
|   options.vim.snippets.luasnip = { |   options.vim.snippets.luasnip = { | ||||||
|     enable = mkEnableOption "luasnip"; |     enable = mkEnableOption "luasnip"; | ||||||
|  | @ -32,5 +32,9 @@ in { | ||||||
|         ``` |         ``` | ||||||
|       ''; |       ''; | ||||||
|     }; |     }; | ||||||
|  | 
 | ||||||
|  |     setupOpts = mkPluginSetupOption "LuaSnip" { | ||||||
|  |       enable_autosnippets = mkEnableOption "autosnippets"; | ||||||
|  |     }; | ||||||
|   }; |   }; | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 GitHub
					GitHub