mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
add(nvim): textwidth
best thing in the universe
This commit is contained in:
parent
b4fc990d81
commit
9754e49477
2 changed files with 9 additions and 9 deletions
|
|
@ -9,6 +9,15 @@ autocmd("TextYankPost", {
|
|||
callback = function() vim.highlight.on_yank() end,
|
||||
})
|
||||
|
||||
autocmd("FileType", {
|
||||
pattern = { "markdown", "tex", "typst" },
|
||||
callback = function()
|
||||
vim.opt_local.shiftwidth = 2
|
||||
vim.opt_local.tabstop = 2
|
||||
vim.opt_local.textwidth = 80
|
||||
end,
|
||||
})
|
||||
|
||||
autocmd("Filetype", {
|
||||
pattern = "skel",
|
||||
callback = function()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue