diff --git a/.config/nvim/README.md b/.config/nvim/README.md index 9c9f844..5bc6ccc 100644 --- a/.config/nvim/README.md +++ b/.config/nvim/README.md @@ -16,4 +16,3 @@ Neovim conf heavily adapted to suit my needs, formerly based on LunarVim's [basi * hadolint * revive * tree-sitter-cli -* Optional for copilotchat: `sudo luarocks install --lua-version 5.1 tiktoken_core` diff --git a/.config/nvim/lua/core/keymaps.lua b/.config/nvim/lua/core/keymaps.lua index 867c7b3..1f4ee1d 100644 --- a/.config/nvim/lua/core/keymaps.lua +++ b/.config/nvim/lua/core/keymaps.lua @@ -171,18 +171,6 @@ keymap( vim.tbl_extend("force", opts, { desc = "Run tests on the current file" }) ) --- Copilot -keymap({ "n", "v" }, "cop", function() - local actions = require("CopilotChat.actions") - require("CopilotChat.integrations.telescope").pick(actions.prompt_actions()) -end, vim.tbl_extend("force", opts, { desc = "CopilotChat - Prompt actions" })) -keymap("n", "coq", function() - local input = vim.fn.input("Quick Chat: ") - if input ~= "" then - require("CopilotChat").ask(input, { selection = require("CopilotChat.select").buffer }) - end -end, vim.tbl_extend("force", opts, { desc = "CopilotChat - Quick chat" })) - -- Better paste keymap("v", "p", "P", vim.tbl_extend("force", opts, { desc = "Paste" })) diff --git a/.config/nvim/lua/core/lazy.lua b/.config/nvim/lua/core/lazy.lua index b4c1665..35594c6 100644 --- a/.config/nvim/lua/core/lazy.lua +++ b/.config/nvim/lua/core/lazy.lua @@ -266,12 +266,6 @@ require("lazy").setup({ event = "InsertEnter", }, { "AndreM222/copilot-lualine" }, - { - "copilotc-nvim/copilotchat.nvim", - branch = "main", - build = "make tiktoken", - event = "VeryLazy", - }, -- Folding { diff --git a/.config/nvim/lua/plugins/copilot.lua b/.config/nvim/lua/plugins/copilot.lua index c909caf..4e7933d 100644 --- a/.config/nvim/lua/plugins/copilot.lua +++ b/.config/nvim/lua/plugins/copilot.lua @@ -21,29 +21,3 @@ require("copilot").setup({ ["*"] = false, }, }) - -local prompts = { - Spelling = { - system_prompt = "You are a technical writer. You have a deep understanding of both the English and the Spanish languages. You can effectively communicate complex ideas and concepts in a way everyone easily understands. You have a keen eye for detail and can pick up on subtle nuances in language that others may miss. You are also skilled at translating written or spoken content from one language to another, ensuring that the meaning and tone of the original message are preserved.", - prompt = "Correct any grammar and spelling errors in the following text. Respect the markdown format when provided", - }, -} - -require("CopilotChat").setup({ - highlight_headers = false, - -- separator = "———", - error_header = "> [!ERROR] Error", - debug = false, - show_user_selection = false, - clear_chat_on_new_prompt = false, - prompts = prompts, - model = "gpt-4.1", -}) - -vim.api.nvim_create_autocmd("BufEnter", { - pattern = "copilot-chat", - callback = function() - vim.opt_local.relativenumber = false - vim.opt_local.number = false - end, -})