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
If, for some reason, I wanted to disable this specific spec, I can do it through enabled = false. However, even when I disable the spec, lazy still tries to process the dependencies and tries to initialize nvm-lspconfig with cmp-nvim-lsp. This fails because the plugin has not been loaded.
/home/subaru/.config/nvim/lua/plugins/completion.lua:24: module 'cmp_nvim_lsp' not found:
no field package.preload['cmp_nvim_lsp']
cache_loader: module cmp_nvim_lsp not found
cache_loader_lib: module cmp_nvim_lsp not found
no file './cmp_nvim_lsp.lua'
no file '/usr/share/luajit-2.1.0-beta3/cmp_nvim_lsp.lua'
no file '/usr/local/share/lua/5.1/cmp_nvim_lsp.lua'
no file '/usr/local/share/lua/5.1/cmp_nvim_lsp/init.lua'
no file '/usr/share/lua/5.1/cmp_nvim_lsp.lua'
no file '/usr/share/lua/5.1/cmp_nvim_lsp/init.lua'
no file './cmp_nvim_lsp.so'
no file '/usr/local/lib/lua/5.1/cmp_nvim_lsp.so'
no file '/usr/lib/lua/5.1/cmp_nvim_lsp.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
# stacktrace:
- ~/.config/nvim/lua/plugins/completion.lua:24 _in_ **values**
- vim/_editor.lua:0 _in_ **cmd**
- /persistence.nvim/lua/persistence/init.lua:57 _in_ **load**
- lua/:1
- vim/_editor.lua:0 _in_ **cmd**
- /dashboard-nvim/lua/dashboard/theme/doom.lua:23
Describe the solution you'd like
If any spec has enabled = false set, then lazy should completely ignore all config associated with it, including the dependencies.
Describe alternatives you've considered
N/A
Additional context
No response
The text was updated successfully, but these errors were encountered:
Did you check the docs?
Is your feature request related to a problem? Please describe.
I am organizing my plugin spec based on the feature they implement. For example,
completion.lua
has the following snippet:If, for some reason, I wanted to disable this specific spec, I can do it through
enabled = false
. However, even when I disable the spec,lazy
still tries to process the dependencies and tries to initializenvm-lspconfig
withcmp-nvim-lsp
. This fails because the plugin has not been loaded.Describe the solution you'd like
If any spec has
enabled = false
set, thenlazy
should completely ignore all config associated with it, including the dependencies.Describe alternatives you've considered
N/A
Additional context
No response
The text was updated successfully, but these errors were encountered: