refactor: clean up file tree, remove redundant code, formatting
This commit is contained in:
@@ -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,
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user