From 085c8017d8ed3c83d1f61306d6b42f460d2857bc Mon Sep 17 00:00:00 2001 From: jdhao Date: Sat, 20 Aug 2022 13:50:23 +0800 Subject: update the autocmd for saving a file --- core/autocommands.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') 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(''), ":p:h")) augroup END " ref: https://vi.stackexchange.com/a/169/15292 -- cgit v1.2.3