diff options
| author | Victor S <victorplentz@gmail.com> | 2023-10-07 23:26:40 -0300 |
|---|---|---|
| committer | Victor S <victorplentz@gmail.com> | 2023-10-07 23:26:40 -0300 |
| commit | 8e7155479fa65bf120caece1a171bc8fc81e2e27 (patch) | |
| tree | 6f03e8f88b2bcbd39d83623973e61b58c71a6807 /autoload/prettier | |
| parent | 2ec63e2a1d18525a1cf0822fa32862b25f5802a5 (diff) | |
| download | vim-prettier-8e7155479fa65bf120caece1a171bc8fc81e2e27.tar.xz | |
refactor: make mapper function reusable
Changed the function to make it reusable across versions of the CLI
flag. This is part of a plan to compose the CLI command from an object
with details about the flags.
Diffstat (limited to 'autoload/prettier')
| -rw-r--r-- | autoload/prettier/resolver/config.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload/prettier/resolver/config.vim b/autoload/prettier/resolver/config.vim index abdbb46..32f5c28 100644 --- a/autoload/prettier/resolver/config.vim +++ b/autoload/prettier/resolver/config.vim @@ -140,10 +140,10 @@ function! s:Flag_stdin_filepath(...) abort return '--stdin-filepath="' . l:current_file . '"' endfunction -" Returns '--loglevel error'. +" Returns '--loglevel error' or '--log-level error'. function! s:Flag_loglevel(config_and_sel, flag, props) abort let l:level = 'error' - return '--loglevel ' . l:level + return a:flag . ' ' . l:level endfunction " Returns '--stdin'. |
