Healthcheck failing on plug install
ryanjclark opened this issue · comments
After logging in via :SourcegraphLogin, checkhealth sg
returns:
sg: require("sg.health").check()
- ERROR Failed to run healthcheck for "sg" plugin. Exception:
function health#check, line 25
Vim(eval):E5108: Error executing lua ...local/share/nvim/site/autoload/sg.nvim/lua/sg/health.lua:169: attempt to call field 'start' (a nil value)
stack traceback:
...local/share/nvim/site/autoload/sg.nvim/lua/sg/health.lua:169: in function 'check'
[string "luaeval()"]:1: in main chunk
Here is my init.vim:
call plug#begin('~/.local/share/nvim/site/autoload')
Plug 'sourcegraph/sg.nvim', { 'do': 'nvim -l build/init.lua' }
" Required for various utilities
Plug 'nvim-lua/plenary.nvim'
" Required if you want to use some of the search functionality
Plug 'nvim-telescope/telescope.nvim'
call plug#end()
Also, where does the configuration go?
require("sg").setup
Is that the full stack trace in the first item? What's your neovim version? Perhaps I used something from a newer version than you have.
The setup()
can be added anywhere in your init.vim (you'll have to do it with lua, like:
lua << EOF
require("sg").setup()
EOF
or similar
@ryanjclark added the above setup as mentioned and Cody is now working.
cc @tjdevries
Great, will look into the other issue you mentioned though!