Set textwidth in norg files for better readability

This commit is contained in:
Evie Litherland-Smith 2023-07-20 13:37:28 +01:00
parent fc8fea536f
commit 4e2e50125d

View file

@ -15,6 +15,10 @@ return {
pattern = { "*.norg" }, pattern = { "*.norg" },
command = "setlocal spell spelllang=en_gb", command = "setlocal spell spelllang=en_gb",
}) })
vim.api.nvim_create_autocmd({ "BufReadPre", "BufNewFile" }, {
pattern = { "*.norg" },
command = "setlocal textwidth=79",
})
vim.api.nvim_create_autocmd({ "BufReadPost", "BufNewFile" }, { vim.api.nvim_create_autocmd({ "BufReadPost", "BufNewFile" }, {
pattern = { "*.norg" }, pattern = { "*.norg" },
command = "lua require('nabla').enable_virt()", command = "lua require('nabla').enable_virt()",