better formatting for markdown files

This commit is contained in:
wires 2025-03-12 13:32:49 -04:00
parent c8a544b3e4
commit 8021007d9f
Signed by: wires
SSH key fingerprint: SHA256:9GtP+M3O2IivPDlw1UY872UPUuJH2gI0yG6ExBxaaiM
2 changed files with 5 additions and 0 deletions

4
ftplugin/markdown.lua Normal file
View file

@ -0,0 +1,4 @@
vim.opt_local.textwidth = 80
vim.opt_local.wrapmargin = 0
vim.opt_local.formatoptions:append({ 't' })
vim.opt_local.linebreak = true

View file

@ -18,6 +18,7 @@ return {
PRETTIERD_LOCAL_PRETTIER_ONLY = 1, PRETTIERD_LOCAL_PRETTIER_ONLY = 1,
}, },
extra_filetypes = { 'astro' }, extra_filetypes = { 'astro' },
disabled_filetypes = { 'markdown' },
}), }),
null_ls.builtins.formatting.stylua, null_ls.builtins.formatting.stylua,
}, },