all repos

init.lua @ dacb681

my nvim config

init.lua/lua/plugins/copilot.lua(view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
return {
  {
    "zbirenbaum/copilot.lua",
    dependencies = { "CopilotChat.nvim" },
    cmd = "Copilot",
    build = ":Copilot auth",
    opts = {
      suggestion = { enabled = false },
      panel = {
        enabled = true,
        auto_refresh = true,
        keymap = {
          refresh = "<C-r>",
        },
        layout = {
          position = "right",
          ratio = 0.3,
        },
      },
      filetypes = {
        markdown = false,
        gitignore = false,
        TelescopePrompt = false,
      },
    },
  },

  {
    "CopilotC-Nvim/CopilotChat.nvim",
    branch = "canary",
    cmd = { "CopilotChat" },
    keys = {
      { "<leader>C", ":CopilotChat ", mode = { "n", "v" } },
    },
    opts = {
      mappings = {
        reset = "<C-r>",
      },
    },
  },
}