~havi/nvim.d

b428d759746ad36682d4e69e97fa447c95ea2af0 — havi 5 months ago 2df78cd
feat(core/vim/options): use treesitter folding
2 files changed, 5 insertions(+), 2 deletions(-)

M .gitignore
M lua/core/vim/options.lua
M .gitignore => .gitignore +1 -0
@@ 19,6 19,7 @@
!/lua/autocmd/nvim-tree/*.lua
!/lua/autocmd/terminal
!/lua/autocmd/terminal/*.lua
!/lua/core
!/lua/core/colors
!/lua/core/colors/*.lua
!/lua/core/vim

M lua/core/vim/options.lua => lua/core/vim/options.lua +4 -2
@@ 109,8 109,10 @@ vim.o.completeopt = "menuone,noselect"  --- Better autocompletion
vim.o.matchpairs = vim.o.matchpairs .. ",<:>"
vim.o.showmatch = true                  --- Show matching brackets

vim.o.foldlevel = 5                     --- Only fold sections deeper than this level automatically
vim.o.foldlevelstart = 5                --- Only fold sections deeper than this level automatically
vim.opt.foldmethod = "expr"
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
vim.opt.foldlevel = 200 


-- https://github.com/ress997/dotfiles-neovim/blob/main/lua/option.lua
if vim.fn.executable "rg" == 1 then