This is a simple plugin to turn to add a functionality to turn on or off specific plugin without updating the neovim config
THIS IS WORK IN PROGRESS
{ -- Lazy
"azatakmyradov/easyswitch.nvim",
dependencies = {
"MunifTanjim/nui.nvim"
},
},
!!!These can't be done in main init.lua file in lazy plugins folder. I recommend creating a easyswitch.lua file to store plugins that can be disabled.
You can wrap an object with new
method from plugin:
return require('easyswitch').new({
{ 'github/copilot.vim', },
{ 'stevearc/conform.nvim', }
})
-- OR --
return require('easyswitch').new({
'github/copilot.vim',
})
- Add cond option to lazy plugins that you want to control. Ex:
{
-- GitHub Copilot
'github/copilot.vim',
cond = require("easyswitch").is_active("copilot.vim"),
}
- Then you can enable/disable that plugin using this command
:lua require('easyswitch').toggle()
E
- to enable pluginD
- to disable plugin