use treesitter coldfolding

This commit is contained in:
Ray Elliott 2022-02-06 10:28:49 +00:00
parent 924b4c7341
commit 939041bd35
4 changed files with 9 additions and 2 deletions

View File

@ -1,5 +1,11 @@
extends html extends html
snippet pre "<pre>print_r()</pre>"
echo "<pre>";
print_r($0);
echo "</pre>";
endsnippet
snippet if "if () {}" snippet if "if () {}"
if ($1) { if ($1) {
$0 $0

View File

@ -1,2 +1 @@
setlocal iskeyword+=$ setlocal iskeyword+=$
setlocal foldmethod=syntax

View File

@ -297,7 +297,6 @@ set laststatus=2
set shortmess=aoOT set shortmess=aoOT
set cmdheight=3 set cmdheight=3
set foldmethod=indent
set foldnestmax=9 set foldnestmax=9
set foldlevelstart=99 set foldlevelstart=99

View File

@ -1,3 +1,6 @@
vim.o.foldmethod='expr'
vim.o.foldexpr='nvim_treesitter#foldexpr()'
vim.diagnostic.config({ vim.diagnostic.config({
virtual_text = false, virtual_text = false,
signs = true, signs = true,