feat(nvim): open copilot chat on leader-cc in floating window
This commit is contained in:
parent
621a555c25
commit
d1637e46fc
2 changed files with 14 additions and 1 deletions
|
@ -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 = {
|
||||
|
|
|
@ -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>")
|
||||
|
|
Loading…
Add table
Reference in a new issue