From d21d7758dae1e80f2a50bcda580179bf12bf2bf1 Mon Sep 17 00:00:00 2001 From: Thomas Vanbesien Date: Wed, 24 Jun 2026 17:31:53 +0200 Subject: fix(nvim): check that NOTES_DIR exists before running code that depends on it --- lua/dotfiles/notes.lua | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 lua/dotfiles/notes.lua (limited to 'lua') diff --git a/lua/dotfiles/notes.lua b/lua/dotfiles/notes.lua new file mode 100644 index 0000000..cec362b --- /dev/null +++ b/lua/dotfiles/notes.lua @@ -0,0 +1,6 @@ +-- Resolved notes directory (normalized), or nil when `$NOTES_DIR` is unset. +-- Single source of truth shared by the notes feature (plugin/50-notes.lua) and the follow engine +-- wiring (plugin/50-follow.lua). +local M = {} +M.dir = vim.env.NOTES_DIR and vim.fs.normalize(vim.env.NOTES_DIR) or nil +return M -- cgit v1.3.1