mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 06:12:34 +00:00
Added formatting for markdown, to wrap lines when buffer is saved
This commit is contained in:
@@ -14,3 +14,13 @@ vim.api.nvim_exec([[
|
||||
augroup END
|
||||
]], false)
|
||||
|
||||
-- Wrap markdown lines when a buffer is written.
|
||||
vim.api.nvim_create_autocmd(
|
||||
"BufWritePre",
|
||||
{
|
||||
pattern = { "*.md", "*.markdown" },
|
||||
command = ":normal ggVGgq",
|
||||
group = vim.api.nvim_create_augroup("MyMarkdownLineWrapper", { clear = true })
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user