Sukanle
Sukanle
https://github.com/archibate/vimrc/issues/46#issuecomment-2563747183
 This bug is in the "lua/archvim/plugins.lua"file:523. To fix this bug,please add "not" after "if", then swap the statements that return the value.
对的,我也对lua不熟悉,以为跟C++一样🤣🤣🤣
> 我知道原因了:`vim.fn.isdirectory`返回的是0或1。 > > 而lua中0也会被视为true,导致无论是否存在该目录,都会进入`return repo`分支。 > > > To fix this bug,please add "not" after "if", then swap the statements that return the value. > > 你的修复是错误的,那只会变成无论如何都进入`return path`分支。 >...
I found a way to solve the problem, This error is caused by `function predownload(repo)`, please check file `plugins.lua`and fix that: 我找到方法去解决这个问题了,这个错误是由`function predownload(repo)`引起的,请检查`plugins.lua`文件并修复它: ```lua function predownload(repo) -- if repo ==...