aboutsummaryrefslogtreecommitdiff
path: root/nvim/lua/plugins/copilot.lua
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2026-02-21 13:00:37 +0100
committerThomas Schmucker <ts@its1.de>2026-02-21 13:00:37 +0100
commitb3da492bf2575ce82f68ed18181d68bd1ee1853f (patch)
tree85304e32911202d8b5cf212f7c35e630d158c1b1 /nvim/lua/plugins/copilot.lua
parenteefea590f72bf5fa1a94ff73433125fa0a658179 (diff)
downloaddotfiles-b3da492bf2575ce82f68ed18181d68bd1ee1853f.tar.gz
dotfiles-b3da492bf2575ce82f68ed18181d68bd1ee1853f.tar.bz2
dotfiles-b3da492bf2575ce82f68ed18181d68bd1ee1853f.zip
neovim: aktiviere Github-Copilot
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}