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

Set popup filetype to `markdown` #108

Open helins opened 4 months ago

helins commented 4 months ago

It is very convenient being able to quickly ask something without creating a new chat file, however it would be much better if the the filetype of the popup was set to markdown to provide nice highlighting.

Robitx commented 4 months ago

Sorry for late response, I've been away for few weeks.

GpPopup already uses markdown filetype https://github.com/Robitx/gp.nvim/blob/d660d9be8d871027c5135c961e33cebb72745227/lua/gp/init.lua#L2713 screenshot_2024-02-27_21-59-56_429057316

Can you describe the behavior you see in more detail?

Dronakurl commented 2 months ago

I noticed that problem, too. When ":GpChatToggle popup", the popup is not in markdown.