Skip to content

andrewwillette/dailynotes.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dailynotes.nvim

A neovim plugin which allows the user to set keymaps to open "daily notes".

Example configuration:

local dailynotes = require("dailynotes")

-- absolute path required
local homedir = os.getenv("HOME")

dailynotes.addDailyNoteShortcut({
  keymap = "<leader>pn", 
  directory = homedir .. "/personal_notes"
  filetype = ".md",
})

-- optionally, you can provide the absolute filepath to a "template file" to populate new daily files
dailynotes.addDailyNoteShortcut({
  keymap = "<leader>pn", 
  directory = homedir .. "/personal_notes"
  filetype = ".md",
  templateFile = homedir .. "/personal_notes_template/dailytemplate.md",
})

Installation

Using lazy.nvim:

...
  "andrewwillette/dailynotes.nvim",
...

Testing

nvim --headless -c ':PlenaryBustedDirectory tests'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages