feat(neovim): use treesitter for folding
parent
9e422fd019
commit
d873f5ffb1
|
@ -34,6 +34,10 @@ vim.opt.inccommand = "split"
|
||||||
-- completion
|
-- completion
|
||||||
vim.opt.completeopt = "menu,menuone,noselect"
|
vim.opt.completeopt = "menu,menuone,noselect"
|
||||||
|
|
||||||
|
-- folding
|
||||||
|
vim.opt.foldmethod = "expr"
|
||||||
|
vim.opt.foldexpr = 'nvim_treesitter#foldexpr()'
|
||||||
|
|
||||||
-- set cursorline in active window
|
-- set cursorline in active window
|
||||||
vim.cmd([[
|
vim.cmd([[
|
||||||
augroup CursorLine
|
augroup CursorLine
|
||||||
|
@ -51,4 +55,3 @@ vim.cmd([[
|
||||||
autocmd TermOpen * setlocal nonumber norelativenumber
|
autocmd TermOpen * setlocal nonumber norelativenumber
|
||||||
augroup END
|
augroup END
|
||||||
]])
|
]])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue