From 8ff62cef14a221aaf04e8bd5e9ce7b1304459d42 Mon Sep 17 00:00:00 2001 From: inkch Date: Wed, 6 Mar 2024 16:47:26 +0900 Subject: [PATCH] nvim: add folding options (especially for markdown) --- dot_config/nvim/lua/core/options.lua.tmpl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dot_config/nvim/lua/core/options.lua.tmpl b/dot_config/nvim/lua/core/options.lua.tmpl index 8bb97e5..dd46984 100644 --- a/dot_config/nvim/lua/core/options.lua.tmpl +++ b/dot_config/nvim/lua/core/options.lua.tmpl @@ -58,3 +58,11 @@ vim.cmd([[ autocmd InsertLeave * call system("fcitx5-remote -c") ]]) vim.cmd("set clipboard+=unnamedplus") + + +-- folding +vim.opt.fillchars = { fold = " " } +vim.opt.foldmethod = "indent" +vim.opt.foldenable = false +vim.opt.foldlevel = 99 +vim.g.markdown_folding = 1 -- enable markdown folding