set textwidth=90 for markdown files
This commit is contained in:
parent
58783dce22
commit
22406fdb25
1 changed files with 7 additions and 0 deletions
7
init.lua
7
init.lua
|
|
@ -158,6 +158,13 @@ ts.setup({
|
||||||
---- Filetypes ---
|
---- Filetypes ---
|
||||||
-- KDL --
|
-- KDL --
|
||||||
vim.filetype.add({ extension = { kdl = "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 --
|
-- YAML --
|
||||||
vim.api.nvim_create_autocmd({ "FileType" }, {
|
vim.api.nvim_create_autocmd({ "FileType" }, {
|
||||||
pattern = "yaml",
|
pattern = "yaml",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue