Merge pull request #636 from honza/elixir_module_name

Improve Elixir defmo snippet with name based on filename
This commit is contained in:
Louis Pilfold 2015-10-25 23:37:56 +00:00
commit 15387bd29f

View File

@ -70,7 +70,7 @@ snippet defma
${0}
end
snippet defmo
defmodule ${1:module_name} do
defmodule ${1:`substitute(vim_snippets#Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`} do
${0}
end
snippet defp