Robitx / gp.nvim

Gp.nvim (GPT prompt) Neovim AI plugin: ChatGPT sessions & Instructable text/code operations & Speech to text [OpenAI]
MIT License
537 stars 49 forks source link

Add feature to provide LSP diagnostics alongside code context #116

Open isak102 opened 3 months ago

isak102 commented 3 months ago

It would be nice to have an option to provide LSP diagnostics when using GpChatNew with some selected context. So if you select code which has a LSP error/warning etc then it would be included in the context in addition to the code. I am willing to work on this when I have time if this is a feature you are interested in merging

There exists https://github.com/piersolenski/wtf.nvim which does that but it does not let you have a persistent conversation like this plugin allows you to do, so I think this feature would be useful in this plugin