Skip to content

Commit

Permalink
Fix: Filename() to vim_snippets#Filename()
Browse files Browse the repository at this point in the history
  • Loading branch information
uga-rosa committed Dec 16, 2021
1 parent 43ed873 commit 117cf45
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions snippets/ls.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,19 @@ snippet bfun
${2}
# Class
snippet cla class ..
class ${1:`substitute(Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`}
class ${1:`substitute(vim_snippets#Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`}
${2}
snippet cla class .. constructor: ..
class ${1:`substitute(Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`}
class ${1:`substitute(vim_snippets#Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`}
(${2:args}) ->
${3}

${4}
snippet cla class .. extends ..
class ${1:`substitute(Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`} extends ${2:ParentClass}
class ${1:`substitute(vim_snippets#Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`} extends ${2:ParentClass}
${3}
snippet cla class .. extends .. constructor: ..
class ${1:`substitute(Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`} extends ${2:ParentClass}
class ${1:`substitute(vim_snippets#Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`} extends ${2:ParentClass}
(${3:args}) ->
${4}

Expand Down
4 changes: 2 additions & 2 deletions snippets/rmd.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@

# Insert Title Block
snippet %%
% ${1:`Filename('', 'title')`}
% ${1:`vim_snippets#Filename('', 'title')`}
% ${2:`g:snips_author`}
% ${3:`strftime("%d %B %Y")`}

${4}
snippet %%*
% ${1:`Filename('', @*)`}
% ${1:`vim_snippets#Filename('', @*)`}
% ${2:`g:snips_author`}
% ${3:`strftime("%d %b %Y")`}

Expand Down
2 changes: 1 addition & 1 deletion snippets/vim.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@ snippet im
snippet exe
execute ${1}
snippet filename
`Filename()`
`vim_snippets#Filename()`

0 comments on commit 117cf45

Please sign in to comment.