summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--autoload/ale/fixers/styler.vim4
-rw-r--r--test/fixers/test_styler_fixer_callback.vader2
2 files changed, 3 insertions, 3 deletions
diff --git a/autoload/ale/fixers/styler.vim b/autoload/ale/fixers/styler.vim
index 7ff3275c..1c7607bd 100644
--- a/autoload/ale/fixers/styler.vim
+++ b/autoload/ale/fixers/styler.vim
@@ -2,13 +2,13 @@
" Description: Fixing R files with styler.
call ale#Set('r_styler_executable', 'Rscript')
-call ale#Set('r_styler_options', 'tidyverse_style')
+call ale#Set('r_styler_options', 'tidyverse_style()')
function! ale#fixers#styler#Fix(buffer) abort
return {
\ 'command': 'Rscript --vanilla -e '
\ . '"suppressPackageStartupMessages(library(styler));'
- \ . 'style_file(commandArgs(TRUE), style = '
+ \ . 'style_file(commandArgs(TRUE), transformers = '
\ . ale#Var(a:buffer, 'r_styler_options') . ')"'
\ . ' %t',
\ 'read_temporary_file': 1,
diff --git a/test/fixers/test_styler_fixer_callback.vader b/test/fixers/test_styler_fixer_callback.vader
index 85e45c1d..79f71ba9 100644
--- a/test/fixers/test_styler_fixer_callback.vader
+++ b/test/fixers/test_styler_fixer_callback.vader
@@ -13,7 +13,7 @@ Execute(The styler callback should include custom styler options):
\ {
\ 'command': 'Rscript --vanilla -e '
\ . '"suppressPackageStartupMessages(library(styler));'
- \ . 'style_file(commandArgs(TRUE), style = '
+ \ . 'style_file(commandArgs(TRUE), transformers = '
\ . 'a_custom_option)"'
\ . ' %t',
\ 'read_temporary_file': 1,