Add obsidian.nvim plugin, add minor changes related to home-dir cleanup

This commit is contained in:
2025-11-17 11:32:07 -06:00
parent 99a3f1aba0
commit 5cbdb77ea0
10 changed files with 89 additions and 48 deletions

View File

@@ -0,0 +1,15 @@
local autoCmdGroup = vim.api.nvim_create_augroup("autoCmdGroup", { clear = true })
local autoCmd = vim.api.nvim_create_autocmd
autoCmd({"BufWritePre"}, {
group = autoCmdGroup,
pattern = "*",
command = [[%s/\s\+$//e]],
})
autoCmd({"BufReadPre"}, {
group = autoCmdGroup,
pattern = os.getenv("DIR_NOTES") .. "/**/*.md",
command = [[lua vim.opt_local.conceallevel = 1]],
})