Making a new directory in Neovim Lua
Use the Neovim vim.fn
wrapper to call the Vim function mkdir
.
Which itself is just the regular mkdir
command.
In Vim it would be:
vim
-- Or any flags
:call mkdir("/path/to/folder", "p")