diff --git a/UltiSnips/php.snippets b/UltiSnips/php.snippets index ae7a4e2..6b8606f 100644 --- a/UltiSnips/php.snippets +++ b/UltiSnips/php.snippets @@ -1,5 +1,11 @@ extends html +snippet pre "
print_r()
" +echo "
";
+print_r($0);
+echo "
"; +endsnippet + snippet if "if () {}" if ($1) { $0 diff --git a/ftplugin/javascript.vim b/ftplugin/javascript.vim index 9c0321c..fc6035c 100644 --- a/ftplugin/javascript.vim +++ b/ftplugin/javascript.vim @@ -1,2 +1 @@ setlocal iskeyword+=$ -setlocal foldmethod=syntax diff --git a/init.vim b/init.vim index e0c815f..fab1d6d 100644 --- a/init.vim +++ b/init.vim @@ -297,7 +297,6 @@ set laststatus=2 set shortmess=aoOT set cmdheight=3 -set foldmethod=indent set foldnestmax=9 set foldlevelstart=99 diff --git a/lua/init.lua b/lua/init.lua index 5c5d494..54cad38 100644 --- a/lua/init.lua +++ b/lua/init.lua @@ -1,3 +1,6 @@ +vim.o.foldmethod='expr' +vim.o.foldexpr='nvim_treesitter#foldexpr()' + vim.diagnostic.config({ virtual_text = false, signs = true,