From ed7d2ca4e185d69dafcf141f29bbb87cd0b87cdc Mon Sep 17 00:00:00 2001 From: Alok Singh Date: Sun, 8 Jan 2017 16:10:08 -0800 Subject: [PATCH] Update ruby.vim (#27) Now using `shiftwidth()` for indention number --- autoload/neoformat/formatters/ruby.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/neoformat/formatters/ruby.vim b/autoload/neoformat/formatters/ruby.vim index 464bb4df..1f78ef8e 100644 --- a/autoload/neoformat/formatters/ruby.vim +++ b/autoload/neoformat/formatters/ruby.vim @@ -5,6 +5,6 @@ endfunction function! neoformat#formatters#ruby#rubybeautify() abort return { \ 'exe': 'ruby-beautify', - \ 'args': ['--spaces', '-c 2'], + \ 'args': ['--spaces', '-c ' . shiftwith()], \ } endfunction