Skip to content

Commit

Permalink
fix: isdirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
mikinovation committed Apr 20, 2024
1 parent 3ec6855 commit 8a6c04c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/nvim/init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ if &compatible
endif

let $CACHE = expand('~/.cache')
if !($CACHE->isdirectory())

if !isdirectory($CACHE)
call mkdir($CACHE, 'p')
endif

if &runtimepath !~# '/dein.vim'
let s:dir = 'dein.vim'->fnamemodify(':p')
if !(s:dir->isdirectory())
Expand Down

0 comments on commit 8a6c04c

Please sign in to comment.