Skip to content

Commit 2f1c5b3

Browse files
authored
Merge pull request #4 from 0bvim/feat/include-folding-by-indent
feat: include folding by syntax
2 parents b8b9e38 + f7eb324 commit 2f1c5b3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lua/nivi/core/options.lua

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,14 @@ opt.splitbelow = true -- split horizontal window to the bottom
3939

4040
-- turn off swapfile
4141
opt.swapfile = false
42+
43+
-- enable automatic folding
44+
45+
-- Set the fold method to syntax-based folding
46+
opt.foldmethod = "indent"
47+
48+
-- Set the default fold level to 99 to keep all folds open when opening a file
49+
opt.foldlevel = 99
50+
51+
-- Enable folding automatically when opening a file
52+
opt.foldenable = true

0 commit comments

Comments
 (0)