Skip to content

Commit

Permalink
fix: use vim.fn.mkdir for creating directories
Browse files Browse the repository at this point in the history
Seems that libuv does not implement `mkdir -p` functionality so we'll
just use the function provided by vim.

Closes #3
  • Loading branch information
yujinyuz committed May 13, 2024
1 parent 109f94e commit 0b66fe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/gitpad/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function M.init_gitpad_file(opts)

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

local gitpad_file_path
Expand Down

0 comments on commit 0b66fe1

Please sign in to comment.