use treesitter coldfolding
This commit is contained in:
parent
924b4c7341
commit
939041bd35
|
@ -1,5 +1,11 @@
|
|||
extends html
|
||||
|
||||
snippet pre "<pre>print_r()</pre>"
|
||||
echo "<pre>";
|
||||
print_r($0);
|
||||
echo "</pre>";
|
||||
endsnippet
|
||||
|
||||
snippet if "if () {}"
|
||||
if ($1) {
|
||||
$0
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
setlocal iskeyword+=$
|
||||
setlocal foldmethod=syntax
|
||||
|
|
1
init.vim
1
init.vim
|
@ -297,7 +297,6 @@ set laststatus=2
|
|||
set shortmess=aoOT
|
||||
set cmdheight=3
|
||||
|
||||
set foldmethod=indent
|
||||
set foldnestmax=9
|
||||
set foldlevelstart=99
|
||||
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
vim.o.foldmethod='expr'
|
||||
vim.o.foldexpr='nvim_treesitter#foldexpr()'
|
||||
|
||||
vim.diagnostic.config({
|
||||
virtual_text = false,
|
||||
signs = true,
|
||||
|
|
Loading…
Reference in New Issue