more fixups

This commit is contained in:
Barrett Ruth 2026-02-11 14:42:25 -05:00
parent 44d03fb8ad
commit 831806c2dc
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
6 changed files with 21 additions and 31 deletions

View file

@ -73,3 +73,14 @@ vim.api.nvim_create_autocmd('WinLeave', {
vim.wo.cursorline = false
end,
})
vim.api.nvim_create_autocmd('BufEnter', {
group = aug,
callback = function()
local sw = vim.bo.shiftwidth
if sw <= 0 then return end
vim.opt_local.listchars:append({
leadmultispace = '' .. string.rep(' ', sw - 1),
})
end,
})

View file

@ -35,7 +35,6 @@ o.list = true
opt.listchars = {
space = ' ',
trail = '·',
tab = ' ',
}
opt.matchpairs:append('<:>')