add(nvim): textwidth

best thing in the universe
This commit is contained in:
Léana 江 2023-11-26 15:23:19 +01:00 committed by Léana 江
parent b4fc990d81
commit 9754e49477
2 changed files with 9 additions and 9 deletions

View file

@ -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()