nvim My personal Neovim config
git clone https://git.muftee.net/nvim.git
Log | Files | Refs

commit 464bc615d75fbde2b0b11089c683c9769f971aad
parent 330625801727f3b4b1ce4f967cb8a42fd4c94aca
Author: Ibrahim Muftee <ibrahim@muftee.net>
Date:   Sun, 13 Sep 2026 05:26:15 -0500

Create untracked configuration file

Diffstat:
A.gitignore | 1+
Aexample-config.lua | 11+++++++++++
Minit.lua | 9+++------
3 files changed, 15 insertions(+), 6 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -0,0 +1 @@ +config.lua diff --git a/example-config.lua b/example-config.lua @@ -0,0 +1,11 @@ +local NAME=config +local M = {} + +M.obsidian_workspaces = { + { + name = "<CHANGE-ME>", + path = "<CHANGE-ME>", + }, +} + +return M diff --git a/init.lua b/init.lua @@ -1,3 +1,5 @@ +local config = require("config") + ------------------------- -------- Options -------- ------------------------- @@ -102,12 +104,7 @@ require("obsidian").setup { map("n", "<leader>ow", vim.cmd.ObsidianTomorrow, { desc = "Open tomorrow's Obsidian daily note" }), map("n", "<leader>od", vim.cmd.ObsidianDailyNote, { desc = "Open daily Obsidian note" }), - workspaces = { - { - name = "work", - path = "~/Documents/Vaults/Work", - }, - }, + workspaces = config.obsidian_workspaces, note_id_func = function(title) local id = title:gsub(" ", "%-"):lower()