aboutsummaryrefslogtreecommitdiff
path: root/nvim/lua/plugins/copilot.lua
diff options
context:
space:
mode:
Diffstat (limited to 'nvim/lua/plugins/copilot.lua')
-rw-r--r--nvim/lua/plugins/copilot.lua26
1 files changed, 25 insertions, 1 deletions
diff --git a/nvim/lua/plugins/copilot.lua b/nvim/lua/plugins/copilot.lua
index bcd4480..392e831 100644
--- a/nvim/lua/plugins/copilot.lua
+++ b/nvim/lua/plugins/copilot.lua
@@ -1,4 +1,28 @@
1return { 1return {
2 "github/copilot.vim", 2 "github/copilot.vim",
3 enabled = false, 3 -- enabled = false,
4
5 event = "InsertEnter",
6 config = function()
7 vim.g.copilot_filetypes = {
8 ["*"] = false, -- Standardmäßig aus, ...
9
10 -- außer für diese Dateitypen:
11 lua = true,
12 python = true,
13 javascript = true,
14 typescript = true,
15 go = true,
16 cpp = true,
17 c = true,
18 rust = true,
19 java = true,
20 html = true,
21 css = true,
22 markdown = true,
23 }
24
25 local keymaps = require("config.keymaps")
26 keymaps.copilot()
27 end,
4} 28}