diff --git a/README.md b/README.md index 28469ec..53818eb 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,6 @@ home-manager.users..home.packages = [ ### Completion - `cmp.nix`: Configures the cmp completion framework. -- `cmp-copilot.nix`: Adds GitHub Copilot support to cmp. - `lspkind.nix`: Adds icons to lsp completion items. - `autopairs.nix`: Adds the autopairs plugin. - `schemastore.nix`: Adds the schemastore plugin for JSON and YAML schemas. @@ -67,7 +66,6 @@ home-manager.users..home.packages = [ - `illuminate.nix`: Configures the Illuminate plugin for highlighting other uses of the current word under the cursor. - `indent-blankline.nix`: Configures the Indent Blankline plugin for displaying indentation levels. - `todo-comments.nix`: Configures the Todo Comments plugin for highlighting TODO comments. -- `copilot-chat.nix`: Configures the Copilot Chat plugin for interacting with GitHub Copilot. - `navic.nix`: Configures the Navic plugin, shows the current code context. ### UI Plugins diff --git a/config/default.nix b/config/default.nix index 94a5d4e..4134c13 100644 --- a/config/default.nix +++ b/config/default.nix @@ -11,7 +11,6 @@ _: { # Completion ./plugins/cmp/cmp.nix - ./plugins/cmp/cmp-copilot.nix ./plugins/cmp/lspkind.nix ./plugins/cmp/autopairs.nix ./plugins/cmp/schemastore.nix @@ -26,7 +25,6 @@ _: { ./plugins/editor/illuminate.nix ./plugins/editor/indent-blankline.nix ./plugins/editor/todo-comments.nix - ./plugins/editor/copilot-chat.nix ./plugins/editor/navic.nix # UI plugins diff --git a/config/plugins/cmp/cmp-copilot.nix b/config/plugins/cmp/cmp-copilot.nix deleted file mode 100644 index 3417c01..0000000 --- a/config/plugins/cmp/cmp-copilot.nix +++ /dev/null @@ -1,24 +0,0 @@ -{ - plugins.copilot-cmp = { - enable = true; - }; - plugins.copilot-lua = { - settings = { - copilot = { - suggestion = { - enabled = false; - }; - panel = { - enabled = false; - }; - }; - }; - }; - - extraConfigLua = '' - require("copilot").setup({ - suggestion = { enabled = false }, - panel = { enabled = false }, - }) - ''; -} diff --git a/config/plugins/cmp/cmp.nix b/config/plugins/cmp/cmp.nix index 0797f1f..d4da4df 100644 --- a/config/plugins/cmp/cmp.nix +++ b/config/plugins/cmp/cmp.nix @@ -34,7 +34,6 @@ option.get_bufnrs.__raw = "vim.api.nvim_list_bufs"; keywordLength = 3; } - { name = "copilot"; } { name = "path"; # file system paths keywordLength = 3; diff --git a/config/plugins/editor/copilot-chat.nix b/config/plugins/editor/copilot-chat.nix deleted file mode 100644 index ca3d118..0000000 --- a/config/plugins/editor/copilot-chat.nix +++ /dev/null @@ -1,38 +0,0 @@ -_: { - plugins.copilot-chat = { - enable = true; - }; - - keymaps = [ - { - key = "ct"; - action = "CopilotChatToggle"; - options.desc = "Toggle Copilot Chat Window"; - } - { - key = "cs"; - action = "CopilotChatStop"; - options.desc = "Stop current Copilot output"; - } - { - key = "cr"; - action = "CopilotChatReview"; - options.desc = "Review the selected code"; - } - { - key = "ce"; - action = "CopilotChatExplain"; - options.desc = "Give an explanation for the selected code"; - } - { - key = "cd"; - action = "CopilotChatDocs"; - options.desc = "Add documentation for the selection"; - } - { - key = "cp"; - action = "CopilotChatTests"; - options.desc = "Add tests for my code"; - } - ]; -} diff --git a/config/plugins/ui/lualine.nix b/config/plugins/ui/lualine.nix index 2fa3147..c82239d 100644 --- a/config/plugins/ui/lualine.nix +++ b/config/plugins/ui/lualine.nix @@ -66,20 +66,6 @@ _: { __unkeyed-1 = "filename"; path = 1; } - { - __unkeyed-1.__raw = '' - function() - local icon = " " - local status = require("copilot.api").status.data - return icon .. (status.message or " ") - end, - - cond = function() - local ok, clients = pcall(vim.lsp.get_clients, { name = "copilot", bufnr = 0 }) - return ok and #clients > 0 - end, - ''; - } ]; lualine_y = [ {