Use --skip-theme-config flag in box_setup, adjust nvim and tmux settings

This commit is contained in:
2025-11-20 10:24:22 -06:00
parent ae1166a463
commit 8d845e0fc8
14 changed files with 60 additions and 30 deletions

View File

@@ -1,15 +1,27 @@
local autoCmdGroup = vim.api.nvim_create_augroup("autoCmdGroup", { clear = true })
local autoCmd = vim.api.nvim_create_autocmd
-- trim trailing whitespace on save
autoCmd({"BufWritePre"}, {
group = autoCmdGroup,
pattern = "*",
command = [[%s/\s\+$//e]],
})
-- set conceallevel = 1 in obsidian vault(s) for obsidian-nvim plugin
autoCmd({"BufReadPre"}, {
group = autoCmdGroup,
pattern = os.getenv("DIR_NOTES") .. "/**/*.md",
command = [[lua vim.opt_local.conceallevel = 1]],
})
-- adjust indent spacing for html files
autoCmd({"FileType"}, {
group = autoCmdGroup,
pattern = "html",
callback = function()
vim.opt_local.shiftwidth = 2
vim.opt_local.tabstop = 2
vim.opt_local.softtabstop = 2
end
})

View File

@@ -11,9 +11,9 @@ vim.keymap.set("n", "<leader>n", vim.cmd.Ex)
vim.keymap.set("v", "J", ":m '>+1<CR>gv")
vim.keymap.set("v", "K", ":m '<-2<CR>gv")
-- reduce effective distance of half-page jumps and vertically-pad the cursor
vim.keymap.set("n", "<C-d>", "<C-d>4<C-y>M")
vim.keymap.set("n", "<C-u>", "<C-u>4<C-e>M")
-- add extra vertical padding for the cursor after half-page jumps
vim.keymap.set("n", "<C-d>", "<C-d>4<C-e>")
vim.keymap.set("n", "<C-u>", "<C-u>4<C-y>")
-- open folds when iterating search results
vim.keymap.set("n", "n", "nzv")

View File

@@ -7,7 +7,7 @@ return {
custom_highlights = function(highlights, palette)
highlights.Comment['fg'] = "#8a9097"
highlights.LineNr['fg'] = "#8088A8"
highlights.Visual['bg'] = palette.bg4
highlights.Visual['bg'] = palette.bg3
return highlights
end,
gamma = 0.92, -- brightness