1
0
Fork 0

set textwidth=90 for markdown files

This commit is contained in:
Felipe 2023-07-19 21:46:54 -04:00
parent 58783dce22
commit 22406fdb25
Signed by: pitbuster
SSH key fingerprint: SHA256:HDYu2Pm4/TmSX8GBwV49UvFWr1Ljg8XlHxKeCpjJpOk

View file

@ -158,6 +158,13 @@ ts.setup({
---- Filetypes ---
-- KDL --
vim.filetype.add({ extension = { kdl = "kdl" } })
-- Markdown --
vim.api.nvim_create_autocmd({ "FileType" }, {
pattern = "markdown",
callback = function()
vim.opt_local.textwidth = 90
end,
})
-- YAML --
vim.api.nvim_create_autocmd({ "FileType" }, {
pattern = "yaml",