refactor: clean up file tree, remove redundant code, formatting

This commit is contained in:
2024-12-20 18:11:06 -05:00
parent daa0aefd21
commit 660afc8411
33 changed files with 418 additions and 447 deletions
+7 -5
View File
@@ -1,23 +1,25 @@
local autocmd = vim.api.nvim_create_autocmd
local augroup = vim.api.nvim_create_augroup
local o = vim.opt_local
-- ──────────────────[ set options for markdown files ]───────────────
autocmd('FileType', {
pattern = 'markdown',
callback = function()
vim.opt_local.textwidth = 80
vim.opt_local.spell = true
o.colorcolumn = '+1,+2'
o.textwidth = 80
o.spell = true
end,
})
-- ─────────────────────[ set options for gitcommit ]─────────────────────
--[[ -- ─────────────────────[ set options for gitcommit ]─────────────────────
autocmd('FileType', {
pattern = 'gitcommit',
callback = function()
vim.opt_local.textwidth = 78
vim.opt_local.spell = true
end,
})
}) ]]
-- ┌
-- │ Highlight on yank
@@ -29,4 +31,4 @@ autocmd('TextYankPost', {
callback = function()
vim.highlight.on_yank({ higroup = 'IncSearch', timeout = '800' })
end,
})
})