diff options
Diffstat (limited to 'autoload/prettier/utils/shim.vim')
| -rw-r--r-- | autoload/prettier/utils/shim.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/autoload/prettier/utils/shim.vim b/autoload/prettier/utils/shim.vim new file mode 100644 index 0000000..228829e --- /dev/null +++ b/autoload/prettier/utils/shim.vim @@ -0,0 +1,8 @@ +" Backwards compatable version of shiftwidth() +function! prettier#utils#shim#shiftwidth() abort + if exists('*shiftwidth') + return shiftwidth() + else + return &shiftwidth + endif +endfunction |
