From fa4c1b824baa744562679f25715e7027c7704ab8 Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Mon, 15 Jun 2026 08:27:33 +0200 Subject: feat: remove copilot plugin, keymaps and statusline indicator --- nvim/lua/config/keymaps.lua | 30 ------------------------------ nvim/lua/config/statusline.lua | 17 ----------------- nvim/lua/plugins/copilot.lua | 32 -------------------------------- 3 files changed, 79 deletions(-) delete mode 100644 nvim/lua/plugins/copilot.lua (limited to 'nvim/lua') 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() map("n", "tb", require("gitsigns").toggle_current_line_blame) end -function M.copilot() - if vim.fn.exists(":Copilot") == 0 then return end - - map("n", "ct", function() - local status = vim.fn["copilot#Enabled"]() - - if status == 1 then - vim.cmd("Copilot disable") - print("Copilot disabled") - else - vim.cmd("Copilot enable") - print("Copilot enabled") - end - end, { desc = "Copilot Toggle" }) - - map("n", "ce", function() - vim.cmd("Copilot enable") - print("Copilot enabled") - end, { desc = "Copilot Enable" }) - - map("n", "cd", function() - vim.cmd("Copilot disable") - print("Copilot disabled") - end, { desc = "Copilot Disable" }) - - map("n", "cs", function() - vim.cmd("Copilot status") - end, { desc = "Copilot Status" }) -end - function M.global() local opts = { 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() return string.format(" %d:%d ", vim.fn.line("."), vim.fn.col(".")) end -------------------------------------------------------------------------- --- Copilot-Status (buffer-lokal, kein redraw-spam) -------------------------------------------------------------------------- - -local function copilot() - if vim.fn.exists("*copilot#Enabled") == 0 then return "" end - - if vim.fn["copilot#Enabled"]() == 0 then return "  OFF " end - - if vim.b.copilot_suggestion and vim.b.copilot_suggestion.is_visible then return "  SUG " end - - if vim.b.copilot_suggestion_auto_trigger == false then return "  MAN " end - - return "  ON " -end - ---------------------------------------------------------------------- -- Öffentliche Statusline-Funktion ---------------------------------------------------------------------- @@ -178,7 +162,6 @@ function M.statusline() "%=", -- RIGHT: Feedback & Meta - copilot(), diagnostics(), treesitter(), 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 @@ -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, -} -- cgit v1.3