You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the exsiting issues of plugins related to this issue
Neovim version (nvim -v)
neovim-nightly
Operating system/version
Windows 11
Describe the bug
When default.lazy = true, and I require a module, its not updated in the Lazy UI as loaded in windows.
I debugged the root cause, and I could find that when my runtime paths has 'C:\Users\aloknigam\AppData\Local\nvim-data' and 'C:\Users\aloknigam\AppData\Local\nvim' both, and all my plugins are installed in 'C:\Users\aloknigam\AppData\Local\nvim-data\lazy'
So when
-- check rtp excluding plugins. This is a very small list, so should be fastfor_, pathinipairs(M.get_rtp()) doifmodpath:find(path, 1, true) ==1thenreturntrueendend
is executed it returns true for all the require paths and hence not updated in Lazy. code snippet from
-- check rtp excluding plugins. This is a very small list, so should be fastfor_, pathinipairs(M.get_rtp()) doifmodpath:find(path..'/', 1, true) ==1thenreturntrueendend
Steps To Reproduce
set default.lazy = true in config
load any unloaded module via require()
check the Lazy ui its not updated as loaded
Expected Behavior
required module should be marked as loaded in Lazy UI
Repro
No response
The text was updated successfully, but these errors were encountered:
Did you check docs and existing issues?
Neovim version (nvim -v)
neovim-nightly
Operating system/version
Windows 11
Describe the bug
When default.lazy = true, and I require a module, its not updated in the Lazy UI as loaded in windows.
I debugged the root cause, and I could find that when my runtime paths has 'C:\Users\aloknigam\AppData\Local\nvim-data' and 'C:\Users\aloknigam\AppData\Local\nvim' both, and all my plugins are installed in 'C:\Users\aloknigam\AppData\Local\nvim-data\lazy'
So when
is executed it returns true for all the require paths and hence not updated in Lazy. code snippet from
lazy.nvim/lua/lazy/core/cache.lua
Line 58 in af351f6
One way to fix it add '/' to paths and compare
Steps To Reproduce
Expected Behavior
required module should be marked as loaded in Lazy UI
Repro
No response
The text was updated successfully, but these errors were encountered: