`enable_cody: false` in setup fails plugin during config
snapbug opened this issue · comments
I'm trying to use this plugin with an enterprise installation that doesn't have cody enabled (and likely never will). I found enable_cody
in config help, but get the following error on startup when setting that:
Failed to run `config` for sg.nvim
.../share/nvim/lazy/sg.nvim/lua/sg/cody/plugin/commands.lua:169: Invalid command (not found): CodyRestart
# stacktrace:
- /sg.nvim/lua/sg/cody/plugin/commands.lua:169 _in_ **delete_command**
- /sg.nvim/lua/sg/cody/plugin/commands.lua:186 _in_ **setup**
- /sg.nvim/lua/sg/init.lua:40 _in_ **setup**
- dotfiles/nvim/.config/nvim/init.lua:301 _in_ **config**
- dotfiles/nvim/.config/nvim/init.lua:91
I'm using Lazy as the plugin manager, and here's my setup for sg.nvim:
{
"sourcegraph/sg.nvim",
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-telescope/telescope.nvim",
},
config = function()
require("sg").setup({
enable_cody = false,
})
end,
},
and :checkhealth sg
:
sg: require("sg.health").check()
sg.nvim report
- Machine: arm64, sysname: Darwin
- OK Valid nvim version: table: 0x0104e4b240
- ERROR sg.nvim has not been setup. See ':help sg' for more info.
- ERROR Run require('sg').setup() somewhere in your configuration
Ah, I think I found the problem -- if you're still having an error, let me know.