- Create a file named
scratch.lua
in the “plugin” directory. - Put the folowing line in it:
vim.cmd("e ~/journal.md")
After that, restart neovim. It’ll open a “journal.md”
buffer. You can save it, and next time you open neovim,
file ~/journal.md
will be opened automatically.