Skip to content

Commit

Permalink
feat(util): adjust to vim's Patch 9.1.327 (#5122)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhixiao-zhang committed Aug 26, 2024
1 parent 80e9f1b commit 37f98a1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion autoload/coc/util.vim
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,13 @@ function! coc#util#get_config_home()
if s:is_win
return resolve($HOME."/vimfiles")
endif
return resolve($HOME.'/.vim')
if isdirectory(resolve($HOME.'/.vim'))
return resolve($HOME.'/.vim')
endif
if exists('$XDG_CONFIG_HOME') && isdirectory(resolve($XDG_CONFIG_HOME))
return resolve($XDG_CONFIG_HOME.'/vim')
endif
return resolve($HOME.'/.config/vim')
endif
endfunction

Expand Down

0 comments on commit 37f98a1

Please sign in to comment.