sourcegraph / sg.nvim

Experimental Sourcegraph + Cody plugin for Neovim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Configurable CodyChat window width

audkar opened this issue · comments

Problem:

Chat window is too small. After increasing the window size, closing the CodyChat window (:CodyToggle) and reopening it, the size is reset. This is very inconvenient.

Feature request:

Allow to configure default CodyChat window width. Or remember last used width. Or both

🙇

Problem:

Chat window is too small. After increasing the window size, closing the CodyChat window (:CodyToggle) and reopening it, the size is reset. This is very inconvenient.

Feature request:

Allow to configure default CodyChat window width. Or remember last used width. Or both

🙇

➕ 1

The plugin should at least store the previous window width, by default

E.g It would be cool if we could setup CodyHistory to fill 50% of the width of the screen and center it horizontally and vertically.

-- this API might not be the best, but just to share the idea.
require("sg").setup({
 layouts = {
   chat = { ... }
   task = { ... }
 }
})

Great work @tjdevries, big fan 💪

Yes please-- the window really should be more configurable all around (esp to be floating). I use Neovim on a 34-inch display and the tiny non-floating window on the side that jolts all my other open windows makes the chat quite unpleasant to use.

ChatGPT.nvim can provide some inspiration here.

-- this API might not be the best, but just to share the idea.
require("sg").setup({
 layouts = {
   chat = { ... }
   task = { ... }
 }
})

Yes, i think something along these lines would be good (and possibly more advanced floating style ones like chatgpt.nvim, which looks quite nice). I'm currently working on a larger update to the backend of the chat experience, so once we clean that up it should be alot easier to do different stuff for the various layouts (possibly providing custom layouts as well)