Add elixir to list of CurrentFiletypeRunners (#72)

This commit is contained in:
Michael Anhari 2017-04-11 22:08:55 -04:00 committed by Chris Toomey
parent a7d1717e6b
commit 6db978fd0a
2 changed files with 5 additions and 4 deletions

View File

@ -219,8 +219,8 @@ Send a command to execute the current file as a script. The command will be
crafted based on the filetype of the current buffer, e.g. for a file "foo.rb"
(filetype "ruby"), the command would be "ruby {filename}" with {filename}
populated based on the current file. There are default configurations provided
for ruby, javascript (via node), python, and sh. You can override and or add
by defining a dictionary in your Vimrc, e.g.:
for elixir, javascript (via node), python, ruby, and sh. You can override and
or add by defining a dictionary in your Vimrc, e.g.:
let g:vtr_filetype_runner_overrides = {
\ 'ruby': 'ruby -w {file}',

View File

@ -419,9 +419,10 @@ endfunction
function! s:CurrentFiletypeRunners()
let default_runners = {
\ 'ruby': 'ruby {file}',
\ 'elixir': 'elixir {file}',
\ 'javascript': 'node {file}',
\ 'python': 'python {file}',
\ 'ruby': 'ruby {file}',
\ 'sh': 'sh {file}'
\ }
if exists("g:vtr_filetype_runner_overrides")