mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
feat: create parent dir of current file if it does not exist
This commit is contained in:
@@ -118,3 +118,8 @@ augroup packer_auto_compile
|
||||
autocmd!
|
||||
autocmd BufWritePost */nvim/lua/plugins.lua source <afile> | PackerCompile
|
||||
augroup END
|
||||
|
||||
augroup auto_create_dir
|
||||
autocmd!
|
||||
autocmd BufWritePre * call utils#may_create_dir(expand("<afile>"))
|
||||
augroup END
|
||||
|
||||
Reference in New Issue
Block a user