chore: Added auto wrapping for md files in neovim
3f0c89f0
1 file(s) · +8 −0
| 73 | 73 | end, |
|
| 74 | 74 | }) |
|
| 75 | 75 | ||
| 76 | + | vim.api.nvim_create_autocmd("FileType", { |
|
| 77 | + | pattern = { "markdown", "mdx", "text" }, |
|
| 78 | + | callback = function() |
|
| 79 | + | vim.opt_local.wrap = true |
|
| 80 | + | vim.opt_local.linebreak = true -- Break at word boundaries |
|
| 81 | + | end, |
|
| 82 | + | }) |
|
| 83 | + | ||
| 76 | 84 | --[[ require("conform").setup({ |
|
| 77 | 85 | format_on_save = { |
|
| 78 | 86 | -- These options will be passed to conform.format() |