112 lines
3.1 KiB
Lua
112 lines
3.1 KiB
Lua
-- return {
|
|
-- {
|
|
-- "zbirenbaum/copilot.lua",
|
|
-- cmd = "Copilot",
|
|
-- build = ":Copilot auth",
|
|
-- opts = {
|
|
-- suggestion = { enabled = false },
|
|
-- panel = { enabled = false },
|
|
-- filetypes = {
|
|
-- markdown = true,
|
|
-- help = true,
|
|
-- },
|
|
-- },
|
|
-- keys = {
|
|
-- {
|
|
-- "<leader>at",
|
|
-- function()
|
|
-- if require("copilot.client").is_disabled() then
|
|
-- require("copilot.command").enable()
|
|
-- else
|
|
-- require("copilot.command").disable()
|
|
-- end
|
|
-- end,
|
|
-- desc = "Toggle (Copilot)",
|
|
-- },
|
|
-- },
|
|
-- },
|
|
-- {
|
|
-- "folke/which-key.nvim",
|
|
-- opts = {
|
|
-- icons = {
|
|
-- rules = {
|
|
-- { plugin = "copilot.lua", icon = " ", color = "orange" }
|
|
-- }
|
|
-- }
|
|
-- }
|
|
-- },
|
|
-- {
|
|
-- "nvim-cmp",
|
|
-- dependencies = {
|
|
-- {
|
|
-- "zbirenbaum/copilot-cmp",
|
|
-- dependencies = "copilot.lua",
|
|
-- opts = {},
|
|
-- config = function(_, opts)
|
|
-- local copilot_cmp = require("copilot_cmp")
|
|
-- copilot_cmp.setup(opts)
|
|
-- -- attach cmp source whenever copilot attaches
|
|
-- -- fixes lazy-loading issues with the copilot cmp source
|
|
-- LazyVim.lsp.on_attach(function(client)
|
|
-- copilot_cmp._on_insert_enter({})
|
|
-- end, "copilot")
|
|
-- end,
|
|
-- },
|
|
-- },
|
|
-- ---@param opts cmp.ConfigSchema
|
|
-- opts = function(_, opts)
|
|
-- table.insert(opts.sources, 1, {
|
|
-- name = "copilot",
|
|
-- group_index = 1,
|
|
-- priority = 100,
|
|
-- })
|
|
-- end,
|
|
-- },
|
|
-- {
|
|
-- "zbirenbaum/copilot-cmp",
|
|
-- -- enabled = false,
|
|
-- dependencies = "copilot.lua",
|
|
-- opts = {},
|
|
-- config = function(_, opts)
|
|
-- local copilot_cmp = require("copilot_cmp")
|
|
-- copilot_cmp.setup(opts)
|
|
-- -- attach cmp source whenever copilot attaches
|
|
-- -- fixes lazy-loading issues with the copilot cmp source
|
|
-- LazyVim.lsp.on_attach(function(client)
|
|
-- copilot_cmp._on_insert_enter({})
|
|
-- end, "copilot")
|
|
-- end,
|
|
-- },
|
|
-- {
|
|
-- "CopilotC-Nvim/CopilotChat.nvim",
|
|
-- opts = function()
|
|
-- local user = vim.env.USER or "User"
|
|
-- user = user:sub(1, 1):upper() .. user:sub(2)
|
|
-- return {
|
|
-- auto_insert_mode = false,
|
|
-- show_help = true,
|
|
-- question_header = " " .. user .. " ",
|
|
-- answer_header = " Copilot ",
|
|
-- window = {
|
|
-- width = 0.4,
|
|
-- },
|
|
-- selection = function(source)
|
|
-- local select = require("CopilotChat.select")
|
|
-- return select.visual(source) or select.buffer(source)
|
|
-- end,
|
|
-- }
|
|
-- end,
|
|
-- },
|
|
-- {
|
|
-- "folke/edgy.nvim",
|
|
-- optional = true,
|
|
-- opts = function(_, opts)
|
|
-- opts.right = opts.right or {}
|
|
-- table.insert(opts.right, {
|
|
-- ft = "copilot-chat",
|
|
-- title = "Copilot Chat",
|
|
-- size = { width = 100 },
|
|
-- })
|
|
-- end,
|
|
-- },
|
|
-- }
|