Load plugin based on variable set in nvimrc #1195
Answered
by
ObserverOfTime
ObserverOfTime
asked this question in
Q&A
-
I want to load a plugin automatically on {
'ObserverOfTime/nvimcord',
dev = true,
cmd = {'NvimcordUpdate'},
event = function()
return vim.g['nvimcord#autostart'] and {'VimEnter'} or nil
end,
branch = 'workspace',
config = true
}, This seems to be related to #721. |
Beta Was this translation helpful? Give feedback.
Answered by
ObserverOfTime
Nov 26, 2023
Replies: 1 comment 8 replies
-
Hi @ObserverOfTime, See my comment in this discussion |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I figured out a simpler workaround: I can keep the
cmd
trigger and removeevent
but addrequire('nvimcord')
to the nvimrc which will force the plugin to be loaded.