aboutsummaryrefslogtreecommitdiff
path: root/core/autocommands.vim
diff options
context:
space:
mode:
Diffstat (limited to 'core/autocommands.vim')
-rw-r--r--core/autocommands.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/autocommands.vim b/core/autocommands.vim
index 70b40db..c0c01d2 100644
--- a/core/autocommands.vim
+++ b/core/autocommands.vim
@@ -133,7 +133,7 @@ augroup END
augroup auto_create_dir
autocmd!
- autocmd BufWritePre * lua require('utils').may_create_dir()
+ autocmd BufWritePre * lua require('utils').may_create_dir(vim.fn.fnamemodify(vim.fn.expand('<afile>'), ":p:h"))
augroup END
" ref: https://vi.stackexchange.com/a/169/15292