feat(nvim): open copilot chat on leader-cc in floating window

This commit is contained in:
Michael Mandl 2025-03-04 14:31:08 +01:00
parent 621a555c25
commit d1637e46fc
Signed by: mandlm
GPG key ID: 088ED38F036C7AF2
2 changed files with 14 additions and 1 deletions

View file

@ -177,7 +177,17 @@
require("local_firenvim")
require("CopilotChat").setup()
require("CopilotChat").setup({
highlight_headers = false,
separator = "---",
error_header = "> [!ERROR] Error",
window = {
layout = "float",
width = 0.8,
height = 0.8,
}
})
require("diffview").setup({
view = {
merge_tool = {

View file

@ -67,3 +67,6 @@ vim.cmd('nnoremap <expr> * v:hlsearch ? ":nohlsearch<cr>" : "*"')
-- insert-map jj/jk to escape
require("better_escape").setup()
-- open Copilot Chat window
nnoremap("<leader>cc", ":lua require('CopilotChat').open()<CR>")