diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-06-07 14:18:44 +0200 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-06-07 14:18:44 +0200 |
| commit | 0c93981f779d803d6c18409c0e809292cb8ea550 (patch) | |
| tree | 64f827d1dd99bed697d9cd096bcc8240104f3c79 /plugin/50-notes.lua | |
| parent | 0c18f8639f8477f44f78cb877b5dbde6f79bcc12 (diff) | |
| download | nvim-config-0c93981f779d803d6c18409c0e809292cb8ea550.tar.gz nvim-config-0c93981f779d803d6c18409c0e809292cb8ea550.zip | |
feat(nvim): add notes plugin
Diffstat (limited to 'plugin/50-notes.lua')
| -rw-r--r-- | plugin/50-notes.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugin/50-notes.lua b/plugin/50-notes.lua new file mode 100644 index 0000000..9ef0fc3 --- /dev/null +++ b/plugin/50-notes.lua @@ -0,0 +1,5 @@ +if vim.env.NOTES_DIR == nil then + vim.notify("NOTES_DIR is not set", vim.log.levels.ERROR) + return +end +vim.g.notes_dir = vim.env.NOTES_DIR:sub(-1) == "/" and vim.env.NOTES_DIR:sub(1, -2) or vim.env.NOTES_DIR |
