Skip to content

Commit 0b66fe1

Browse files
committed
fix: use vim.fn.mkdir for creating directories
Seems that libuv does not implement `mkdir -p` functionality so we'll just use the function provided by vim. Closes #3
1 parent 109f94e commit 0b66fe1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/gitpad/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function M.init_gitpad_file(opts)
5656

5757
-- create the notes directory if it doesn't exist
5858
if not uv.fs_stat(notes_dir) then
59-
uv.fs_mkdir(notes_dir, 493)
59+
vim.fn.mkdir(notes_dir, 'p')
6060
end
6161

6262
local gitpad_file_path

0 commit comments

Comments
 (0)