aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2026-06-15 08:27:33 +0200
committerThomas Schmucker <ts@its1.de>2026-06-15 08:27:33 +0200
commitfa4c1b824baa744562679f25715e7027c7704ab8 (patch)
tree8ad1499a9290338eb64dafe704aa4561d740d591
parent2d4a82ab20c70787a2af2f5b31233e6df41cdcd6 (diff)
downloaddotfiles-fa4c1b824baa744562679f25715e7027c7704ab8.tar.gz
dotfiles-fa4c1b824baa744562679f25715e7027c7704ab8.tar.bz2
dotfiles-fa4c1b824baa744562679f25715e7027c7704ab8.zip
feat: remove copilot plugin, keymaps and statusline indicator
-rw-r--r--nvim/lua/config/keymaps.lua30
-rw-r--r--nvim/lua/config/statusline.lua17
-rw-r--r--nvim/lua/plugins/copilot.lua32
3 files changed, 0 insertions, 79 deletions
diff --git a/nvim/lua/config/keymaps.lua b/nvim/lua/config/keymaps.lua
index b776697..a2777e6 100644
--- a/nvim/lua/config/keymaps.lua
+++ b/nvim/lua/config/keymaps.lua
@@ -66,36 +66,6 @@ function M.gitsigns()
66 map("n", "<leader>tb", require("gitsigns").toggle_current_line_blame) 66 map("n", "<leader>tb", require("gitsigns").toggle_current_line_blame)
67end 67end
68 68
69function M.copilot()
70 if vim.fn.exists(":Copilot") == 0 then return end
71
72 map("n", "<leader>ct", function()
73 local status = vim.fn["copilot#Enabled"]()
74
75 if status == 1 then
76 vim.cmd("Copilot disable")
77 print("Copilot disabled")
78 else
79 vim.cmd("Copilot enable")
80 print("Copilot enabled")
81 end
82 end, { desc = "Copilot Toggle" })
83
84 map("n", "<leader>ce", function()
85 vim.cmd("Copilot enable")
86 print("Copilot enabled")
87 end, { desc = "Copilot Enable" })
88
89 map("n", "<leader>cd", function()
90 vim.cmd("Copilot disable")
91 print("Copilot disabled")
92 end, { desc = "Copilot Disable" })
93
94 map("n", "<leader>cs", function()
95 vim.cmd("Copilot status")
96 end, { desc = "Copilot Status" })
97end
98
99function M.global() 69function M.global()
100 local opts = { 70 local opts = {
101 silent = true, 71 silent = true,
diff --git a/nvim/lua/config/statusline.lua b/nvim/lua/config/statusline.lua
index fe27cd5..0ec6579 100644
--- a/nvim/lua/config/statusline.lua
+++ b/nvim/lua/config/statusline.lua
@@ -145,22 +145,6 @@ local function position()
145 return string.format(" %d:%d ", vim.fn.line("."), vim.fn.col(".")) 145 return string.format(" %d:%d ", vim.fn.line("."), vim.fn.col("."))
146end 146end
147 147
148-------------------------------------------------------------------------
149-- Copilot-Status (buffer-lokal, kein redraw-spam)
150-------------------------------------------------------------------------
151
152local function copilot()
153 if vim.fn.exists("*copilot#Enabled") == 0 then return "" end
154
155 if vim.fn["copilot#Enabled"]() == 0 then return "  OFF " end
156
157 if vim.b.copilot_suggestion and vim.b.copilot_suggestion.is_visible then return "  SUG " end
158
159 if vim.b.copilot_suggestion_auto_trigger == false then return "  MAN " end
160
161 return "  ON "
162end
163
164---------------------------------------------------------------------- 148----------------------------------------------------------------------
165-- Öffentliche Statusline-Funktion 149-- Öffentliche Statusline-Funktion
166---------------------------------------------------------------------- 150----------------------------------------------------------------------
@@ -178,7 +162,6 @@ function M.statusline()
178 "%=", 162 "%=",
179 163
180 -- RIGHT: Feedback & Meta 164 -- RIGHT: Feedback & Meta
181 copilot(),
182 diagnostics(), 165 diagnostics(),
183 treesitter(), 166 treesitter(),
184 fileinfo(), 167 fileinfo(),
diff --git a/nvim/lua/plugins/copilot.lua b/nvim/lua/plugins/copilot.lua
deleted file mode 100644
index ed0ec8f..0000000
--- a/nvim/lua/plugins/copilot.lua
+++ /dev/null
@@ -1,32 +0,0 @@
1return {
2 "github/copilot.vim",
3 enabled = false,
4
5 event = "InsertEnter",
6 init = function()
7 -- vim.g.copilot_no_tab_map = true
8
9 vim.g.copilot_filetypes = {
10 ["*"] = false, -- Standardmäßig aus, ...
11
12 -- außer für diese Dateitypen:
13 lua = true,
14 python = true,
15 javascript = true,
16 typescript = true,
17 go = true,
18 cpp = true,
19 c = true,
20 rust = true,
21 java = true,
22 html = true,
23 css = true,
24 markdown = true,
25 sh = true,
26 }
27 end,
28 config = function()
29 local keymaps = require("config.keymaps")
30 keymaps.copilot()
31 end,
32}