kawre / leetcode.nvim

A Neovim plugin enabling you to solve LeetCode problems.
MIT License
655 stars 34 forks source link

Error reporting when configuring directory parameters #49

Closed horaoen closed 5 months ago

horaoen commented 5 months ago

Only the first line of code works, logically they are the same

图片 图片
kawre commented 5 months ago

It's because the plenary function mkdir doesn't expand wildcards inside the specified path. If you want the second path to work you need to wrap it in vim.fn.expand(path).

horaoen commented 5 months ago

It's because the plenary function mkdir doesn't expand wildcards inside the specified path. If you want the second path to work you need to wrap it in vim.fn.expand(path).

Thanks, I got it. But would it be better to have vim.fn.expand built into the plugin?

kawre commented 5 months ago

It is on the dev branch. I overhauled how leetcode.nvim stores data and made paths automatically expand by vim.fn.expand. But to test these changes, Ineed some time which i hadn't had recently.