rmagatti/goto-preview

/lib.lua:225: attempt to index field 'lsp_configs' (a nil valu e)

Closed this issue · 1 comments

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):

Additional context
I loaded nvim-lspconfigs plugin on vimEnter event.

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.