Actualizacion maquina principal
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-snippets / ftplugin / snippets.vim
diff --git a/.config/coc/extensions/node_modules/coc-snippets/ftplugin/snippets.vim b/.config/coc/extensions/node_modules/coc-snippets/ftplugin/snippets.vim
new file mode 100644 (file)
index 0000000..f593868
--- /dev/null
@@ -0,0 +1,23 @@
+" Set some sane defaults for snippet files
+
+if exists('b:did_ftplugin')
+    finish
+endif
+let b:did_ftplugin = 1
+
+" Fold by syntax, but open all folds by default
+setlocal foldmethod=syntax
+setlocal foldlevel=99
+
+setlocal commentstring=#%s
+
+setlocal noexpandtab
+setlocal autoindent nosmartindent nocindent
+
+" Define match words for use with matchit plugin
+" http://www.vim.org/scripts/script.php?script_id=39
+if exists("loaded_matchit") && !exists("b:match_words")
+  let b:match_ignorecase = 0
+  let b:match_words = '^snippet\>:^endsnippet\>,^global\>:^endglobal\>,\${:}'
+  let s:set_match_words = 1
+endif