CopilotC-Nvim / CopilotChat.nvim

Chat with GitHub Copilot in Neovim
https://copilotc-nvim.github.io/CopilotChat.nvim/
GNU General Public License v3.0
1.44k stars 67 forks source link

ChatGPT.nvim inspired window #319

Closed akshit-sharma closed 3 months ago

akshit-sharma commented 3 months ago

If one wants to change the window from the a separate buffer to nui.nvim, then does one have to use CopilotChat module, i.e.:

local chat = require("CopilotChat")

-- Open chat window
chat.open()

-- Open chat window with custom options
chat.open({
  window = {
    layout = 'float',
    title = 'My Title',
  },
})

-- Close chat window
chat.close()
...

or can one switch by toggling via changing default window options in configuration ? or is there a better way to do the same ?

Motivation: ChatGPT.nvim