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'

View File

@@ -30,7 +30,7 @@ export XDG_DATA_DIRS="/usr/local/share:/usr/share"
# directory for theme/style stuff
export DIR_THEME_SETTINGS="$XDG_CONFIG_HOME/zz-this-box/themes"
export DEFAULT_THEME_NAME="tokyodark"
export DEFAULT_THEME_NAME="gruvbox"
# zsh
export ZDOTDIR="$XDG_CONFIG_HOME/zsh" # may already be set, set anyway
@@ -51,6 +51,7 @@ export DIR_REAPER_PORTABLE_SHARED="$DIR_USER_OPT/reaper-portable/shared"
export DIR_REAPER_PORTABLE_LINUX="$DIR_USER_OPT/reaper-portable/linux"
export DIR_REAPER_PORTABLE_MACOS="$DIR_USER_OPT/reaper-portable/macos"
# clean-up of home dir
# xdg spec and/or clean-up of home dir
export __CF_USER_TEXT_ENCODING="0x0:0x0" # TODO: does this actually accomplish anything?
export ANDROID_USER_HOME="$XDG_DATA_HOME/android"

View File

@@ -66,3 +66,7 @@ alias shrug='echo "¯\\_(ツ)_/¯"'
# programming and language setup
export DEVKITARM=/opt/devkitpro/devkitARM
# xdg spec and/or clean-up of home dir
alias adb="HOME='$XDG_DATA_HOME/android' adb"