Closed renzhamin closed 7 months ago
Discussed in https://github.com/TabbyML/tabby/issues/624
Discussed in TabbyML/tabby#624
This seemed to be related to tabby server. What I'm saying is that, maybe the plugin could be packaged inside a setup_tabby function and only run the plugin code after it's called.
I figured out a way to load tabby on demand when using lazy.nvim.
{
"TabbyML/vim-tabby",
lazy = true,
keys = { { "<Leader>et" } },
config = function()
vim.g.tabby_trigger_mode = 'manual'
vim.g.tabby_keybinding_accept = '<Tab>'
vim.g.tabby_keybinding_trigger_or_dismiss = '<C-\\>'
vim.call("tabby#OnVimEnter")
end
},
Hitting '\:call tabby#OnVimLeave()
. But I couldn't get it to restart after calling this.
Glad you've figured it out! Yes it's better achieved in vim / nvim package manager.
How can I set it up so that the plugin is completely disabled by default and load it with some setup function (via keymap or autocommands) And a way to disable it would be nice as well. Or a toggle