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

@@ -1,16 +1,6 @@
local csGroup = vim.api.nvim_create_augroup("coreSettingsGroup", { clear = true })
local csgAutocmd = vim.api.nvim_create_autocmd
require("settings")
require("plugin_manager")
require("key_mappings")
require("util_functions")
csgAutocmd({"BufWritePre"}, {
group = csGroup,
pattern = "*",
command = [[%s/\s\+$//e]],
})
require("auto_commands")
ThemeUpdate()

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]],
})

View File

@@ -0,0 +1,16 @@
return {
{
"obsidian-nvim/obsidian.nvim",
version = "*", -- '*' for latest release, not latest commit
ft = "markdown",
opts = {
workspaces = {
{
name = "notes",
path = os.getenv("DIR_NOTES"),
},
},
legacy_commands = false,
},
},
}

View File

@@ -21,6 +21,8 @@ vim.opt.textwidth = 0
vim.opt.wrapmargin = 0
vim.opt.fillchars = { eob = ' ' }
vim.opt.conceallevel = 0
vim.opt.spell = false
vim.opt.spelllang = 'en_us'