/lib.lua:225: attempt to index field 'lsp_configs' (a nil valu e)
Closed this issue · 1 comments
isvicy commented
Describe the bug
Error executing vim.schedule lua callback: ...te/pack/packer/opt/goto-preview/lua/goto-preview/lib.lua:225: attempt to index field 'lsp_configs' (a nil valu
e)
stack traceback:
...te/pack/packer/opt/goto-preview/lua/goto-preview/lib.lua:225: in function 'handle'
...te/pack/packer/opt/goto-preview/lua/goto-preview/lib.lua:259: in function 'handler'
/usr/local/share/nvim/runtime/lua/vim/lsp.lua:1025: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>
step to produce
git clone https://github.com/bryceyang/dotConfigs.git
git checkout navigator-again-new-theme
cd neovim-lua-refactor-version
source ./playground.sh # this won't affect your config, just set a custom xdg env
nvp some_projects # nvp is an alias to nvim with custom xdg env from above source step
# use gpd (my custom hot-key for goto-preview)
Expected behavior
preview window show up
Baseline (please complete the following information):
- OS: wsl2 with ubuntu-20.04 or mac with m1 chip both have this problem.
- Neovim version : 0.7 release
- URL to your current config: https://github.com/bryceyang/dotConfigs/tree/navigator-again-new-theme , the reproduce steps above i wrote uses this config.
Additional context
I loaded nvim-lspconfigs plugin on vimEnter event.
isvicy commented
sorry for the trouble. I checked the code of goto-preview, and realized that i just set the keymaps but forget to call the setup method of goto-preview. problem solved.