feat: minor cleanups

This commit is contained in:
Barrett Ruth 2026-03-07 21:46:53 -05:00
parent 84d9af2e36
commit 004e0d3e9a
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
4 changed files with 51 additions and 47 deletions

View file

@ -0,0 +1,4 @@
{
"lazy.nvim": { "branch": "main", "commit": "85c7ff3711b730b4030d03144f6db6375044ae82" },
"midnight.nvim": { "branch": "main", "commit": "fe062a6f2e5bd77cd8a260f61e6e12789eaf4f13" }
}

View file

@ -154,12 +154,16 @@ return {
before = function() before = function()
vim.g.pending = { vim.g.pending = {
debug = true, debug = true,
-- TODO: use date formats/personal rice
data_path = (os.getenv('XDG_STATE_HOME') or (os.getenv('HOME') .. '/.local/state')) .. '/nvim/pending/tasks.json', data_path = (os.getenv('XDG_STATE_HOME') or (os.getenv('HOME') .. '/.local/state')) .. '/nvim/pending/tasks.json',
date_format = '%d/%m/%y',
date_syntax = 'd',
recur_syntax = 'r',
input_date_formats = { '%d/%m/%Y', '%d/%m/%y' },
drawer_height = vim.o.lines,
} }
end, end,
cmd = 'Pending', cmd = 'Pending',
keys = { { '<leader>P', '<cmd>Pending<cr>' } }, keys = { { '<leader>P', '<cmd>Pending|only<cr>' } },
}, },
{ {
'barrettruth/cp.nvim', 'barrettruth/cp.nvim',

View file

@ -1,25 +1,24 @@
local o, opt = vim.o, vim.opt vim.o.autoread = true
vim.o.autowrite = true
o.autoread = true vim.o.breakindent = true
o.autowrite = true
o.breakindent = true vim.o.cursorline = true
o.cursorline = true vim.opt.diffopt:append('linematch:60')
opt.diffopt:append('linematch:60') vim.o.expandtab = true
o.expandtab = true vim.o.exrc = true
vim.o.secure = true
o.exrc = true vim.o.foldcolumn = 'auto'
o.secure = true vim.o.foldexpr = 'v:lua.vim.treesitter.foldexpr()'
vim.o.foldlevel = 99
vim.o.foldmethod = 'expr'
vim.o.foldtext = ''
o.foldexpr = 'v:lua.vim.treesitter.foldexpr()' vim.opt.fillchars = {
o.foldlevel = 99
o.foldmethod = 'expr'
o.foldtext = ''
opt.fillchars = {
eob = ' ', eob = ' ',
vert = '', vert = '',
diff = '', diff = '',
@ -29,56 +28,53 @@ opt.fillchars = {
foldinner = ' ', foldinner = ' ',
} }
opt.iskeyword:append('-') vim.opt.iskeyword:append('-')
o.laststatus = 3 vim.o.laststatus = 3
o.linebreak = true vim.o.linebreak = true
o.list = true vim.o.list = true
opt.listchars = { vim.opt.listchars = {
space = ' ', space = ' ',
trail = '·', trail = '·',
} }
opt.matchpairs:append('<:>') vim.opt.matchpairs:append('<:>')
o.number = true vim.o.number = true
o.relativenumber = true vim.o.relativenumber = true
o.signcolumn = 'no' vim.o.signcolumn = 'no'
o.statuscolumn = '%s%C %=%{v:relnum?v:relnum:v:lnum} ' vim.o.statuscolumn = '%s%C %=%{v:relnum?v:relnum:v:lnum} '
o.statusline = " %{len(expand('%'))?expand('%:~').' ':''}%h%m%r%=%c:%l/%L " vim.o.statusline = " %{len(expand('%'))?expand('%:~').' ':''}%h%m%r%=%c:%l/%L "
opt.path:append('**') vim.opt.path:append('**')
o.scrolloff = 8 vim.o.scrolloff = 8
o.shiftwidth = 2 vim.o.shiftwidth = 2
opt.shortmess:append('acCIs') vim.opt.shortmess:append('acCIs')
o.showtabline = 0 vim.o.spellfile = (vim.env.XDG_DATA_HOME or (vim.env.HOME .. '/.local/share'))
o.spellfile = (vim.env.XDG_DATA_HOME or (vim.env.HOME .. '/.local/share'))
.. '/nvim/spell.encoding.add' .. '/nvim/spell.encoding.add'
o.splitkeep = 'screen' vim.o.splitkeep = 'screen'
o.splitbelow = true vim.o.splitbelow = true
o.splitright = true vim.o.splitright = true
o.swapfile = false vim.o.swapfile = false
o.termguicolors = true vim.o.termguicolors = true
o.undodir = (vim.env.XDG_DATA_HOME or (vim.env.HOME .. '/.local/share')) vim.o.undodir = (vim.env.XDG_DATA_HOME or (vim.env.HOME .. '/.local/share'))
.. '/nvim/undo' .. '/nvim/undo'
o.undofile = true vim.o.undofile = true
o.updatetime = 50 vim.o.updatetime = 50
o.winborder = 'single' vim.o.winborder = 'single'
o.winbar = ''
o.wrap = false vim.o.wrap = false

View file

@ -9,7 +9,7 @@
programs.ghostty = { programs.ghostty = {
enable = true; enable = true;
settings = { settings = {
font-family = "Zen Mono"; font-family = "Zed Mono";
font-codepoint-map = "U+f101-U+f25c=nonicons"; font-codepoint-map = "U+f101-U+f25c=nonicons";
font-feature = "-calt"; font-feature = "-calt";
font-size = 20; font-size = 20;