From ab1b0a3ae633789e7aacc85b77250bd730621044 Mon Sep 17 00:00:00 2001 From: Lucas Barbieri Date: Fri, 16 Feb 2024 21:40:04 -0300 Subject: [PATCH] set soft wrap for neorg files --- lua/jabuxas/set.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lua/jabuxas/set.lua b/lua/jabuxas/set.lua index f3fda36..159d656 100644 --- a/lua/jabuxas/set.lua +++ b/lua/jabuxas/set.lua @@ -47,6 +47,14 @@ autocmd({ "BufReadPre", "BufEnter", "BufRead", "BufNewFile" }, require("cmp").setup.buffer({ enabled = false }) end }) + +autocmd("Filetype", { + pattern = "norg", + callback = function() + vim.opt.wrap = true + end +}) + vim.opt.conceallevel = 2 vim.opt.concealcursor = "n"