mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 02:52:37 +00:00 
			
		
		
		
	feat: add daily note options for obsidian
This commit is contained in:
		
					parent
					
						
							
								a8c5564bac
							
						
					
				
			
			
				commit
				
					
						f8a46d68a7
					
				
			
		
					 2 changed files with 25 additions and 0 deletions
				
			
		|  | @ -23,6 +23,18 @@ in { | ||||||
|         if (auto.type == "nvim-cmp") |         if (auto.type == "nvim-cmp") | ||||||
|         then "true" |         then "true" | ||||||
|         else "false" |         else "false" | ||||||
|  |       } | ||||||
|  |         }, | ||||||
|  |         daily_notes = { | ||||||
|  |           folder = ${ | ||||||
|  |         if (cfg.daily-notes.folder == "") | ||||||
|  |         then "nil," | ||||||
|  |         else "'${cfg.daily-notes.folder}'," | ||||||
|  |       } | ||||||
|  |           date_format = ${ | ||||||
|  |         if (cfg.daily-notes.date-format == "") | ||||||
|  |         then "nil," | ||||||
|  |         else "'${cfg.daily-notes.date-format}'," | ||||||
|       } |       } | ||||||
|         } |         } | ||||||
|       }) |       }) | ||||||
|  |  | ||||||
|  | @ -14,6 +14,19 @@ with builtins; { | ||||||
|         description = "Obsidian vault directory"; |         description = "Obsidian vault directory"; | ||||||
|       }; |       }; | ||||||
| 
 | 
 | ||||||
|  |       daily-notes = { | ||||||
|  |         folder = mkOption { | ||||||
|  |           type = types.str; | ||||||
|  |           default = ""; | ||||||
|  |           description = "Directory in which daily notes should be created"; | ||||||
|  |         }; | ||||||
|  |         date-format = mkOption { | ||||||
|  |           type = types.str; | ||||||
|  |           default = ""; | ||||||
|  |           description = "Date format used for creating daily notes"; | ||||||
|  |         }; | ||||||
|  |       }; | ||||||
|  | 
 | ||||||
|       completion = { |       completion = { | ||||||
|         nvim_cmp = mkOption { |         nvim_cmp = mkOption { | ||||||
|           # if using nvim-cmp, otherwise set to false |           # if using nvim-cmp, otherwise set to false | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 AmanSe
				AmanSe