Add elixir to list of CurrentFiletypeRunners (#72)
This commit is contained in:
parent
a7d1717e6b
commit
6db978fd0a
@ -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}',
|
||||
|
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user