aboutsummaryrefslogtreecommitdiff
path: root/nvim/lua/plugins/copilot.lua
blob: 237a589f1134b679c6749139ed2f06bd19cffcd2 (plain)
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
return {
  "github/copilot.vim",
  -- enabled = false,

  event = "InsertEnter",
  init = function()
    -- vim.g.copilot_no_tab_map = true

    vim.g.copilot_filetypes = {
      ["*"] = false, -- Standardmäßig aus, ...

      -- außer für diese Dateitypen:
      lua = true,
      python = true,
      javascript = true,
      typescript = true,
      go = true,
      cpp = true,
      c = true,
      rust = true,
      java = true,
      html = true,
      css = true,
      markdown = true,
      sh = true,
    }
  end,
  config = function()
    local keymaps = require("config.keymaps")
    keymaps.copilot()
  end,
}