Skip to content

Commit eb46727

Browse files
committed
feat: change default config path
1 parent c5bc19b commit eb46727

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

plugin/fall.vim

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ if exists('g:loaded_fall')
22
finish
33
endif
44
let g:loaded_fall = 1
5+
let s:sep = has('win32') ? '\' : '/'
56

67
command! -nargs=+ -complete=customlist,fall#command#Fall#complete
78
\ Fall call fall#command#Fall#call([<f-args>])
@@ -14,4 +15,8 @@ augroup fall_plugin
1415
autocmd User FallPickerLeave:* :
1516
augroup END
1617

17-
let g:fall_config_path = '~/.config/fall/config.ts'
18+
if !exists('g:fall_config_path')
19+
let g:fall_config_path = has('nvim')
20+
\ ? join([stdpath('config'), 'fall', 'config.ts'], s:sep)
21+
\ : join([$HOME, '.vim', 'fall', 'config.ts'], s:sep)
22+
endif

0 commit comments

Comments
 (0)