josean-dev / dev-environment-files

2.63k stars 740 forks source link

Integration with Trouble.nvim #25

Open jjo93sa opened 1 year ago

jjo93sa commented 1 year ago

Hi, I followed along with your YouTube video, and thought it was great. Been a NeoVim convert ever since. I've broadly speaking got your same configuration, with some added LSP/linters for Python. I've found that the "virtual text" for LSP errors and warnings was annoying, since I often couldn't read it all. I found trouble.nvim, a plugin that can display the LSP messages in a separate pane at the bottom of the nvim window. I looks really nice, but I'm having trouble integrating it.

I get the following error:

Error executing vim.schedule lua callback: ...site/pack/packer/start/trouble.nvim/lua/trouble/view.lua:469: Cursor position outside buffer
stack traceback:
        [C]: in function 'nvim_win_set_cursor'
        ...site/pack/packer/start/trouble.nvim/lua/trouble/view.lua:469: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>

Clearly, this isn't a problem with your configuration. However, I was hoping you might know where I can look to solve this one? (And thought you might be interested in Trouble too!)

Many thanks,

James