Files
nvim/lua/plugins/copilot-chat.lua
T
2025-02-20 20:20:59 +01:00

32 lines
1.5 KiB
Lua

return {
-- {
-- "CopilotC-Nvim/CopilotChat.nvim",
-- branch = "canary",
-- dependencies = {
-- { "github/copilot.vim" }, -- or github/copilot.vim
-- { "nvim-lua/plenary.nvim" }, -- for curl, log wrapper
-- },
-- build = "make tiktoken", -- Only on MacOS or Linux
-- opts = {
-- debug = true, -- Enable debugging
-- -- default window options
-- window = {
-- layout = "float", -- 'vertical', 'horizontal', 'float', 'replace'
-- width = 0.8, -- fractional width of parent, or absolute width in columns when > 1
-- height = 0.8, -- fractional height of parent, or absolute height in rows when > 1
-- -- Options below only apply to floating windows
-- relative = "editor", -- 'editor', 'win', 'cursor', 'mouse'
-- border = "single", -- 'none', single', 'double', 'rounded', 'solid', 'shadow'
-- row = nil, -- row position of the window, default is centered
-- col = nil, -- column position of the window, default is centered
-- title = "Copilot Chat", -- title of chat window
-- footer = nil, -- footer of chat window
-- zindex = 1, -- determines if window is on top or below other floating windows
-- },
-- },
-- vim.api.nvim_set_keymap("n", "<leader>gh", ":CopilotChatToggle<CR>", { noremap = true, silent = true }),
-- vim.api.nvim_set_keymap("n", "<leader>gr", ":CopilotChatReset<CR>", { noremap = true, silent = true }),
-- -- See Commands section for default commands if you want to lazy load on them
-- },
}