1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2025-10-01 03:49:10 +00:00

[neovim] remove copilotchat plugin

This commit is contained in:
2025-09-20 15:44:52 +02:00
parent 61a1cd6430
commit d2ead8bace
4 changed files with 0 additions and 45 deletions

View File

@@ -16,4 +16,3 @@ Neovim conf heavily adapted to suit my needs, formerly based on LunarVim's [basi
* hadolint * hadolint
* revive * revive
* tree-sitter-cli * tree-sitter-cli
* Optional for copilotchat: `sudo luarocks install --lua-version 5.1 tiktoken_core`

View File

@@ -171,18 +171,6 @@ keymap(
vim.tbl_extend("force", opts, { desc = "Run tests on the current file" }) vim.tbl_extend("force", opts, { desc = "Run tests on the current file" })
) )
-- Copilot
keymap({ "n", "v" }, "<leader>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", "<leader>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 -- Better paste
keymap("v", "p", "P", vim.tbl_extend("force", opts, { desc = "Paste" })) keymap("v", "p", "P", vim.tbl_extend("force", opts, { desc = "Paste" }))

View File

@@ -266,12 +266,6 @@ require("lazy").setup({
event = "InsertEnter", event = "InsertEnter",
}, },
{ "AndreM222/copilot-lualine" }, { "AndreM222/copilot-lualine" },
{
"copilotc-nvim/copilotchat.nvim",
branch = "main",
build = "make tiktoken",
event = "VeryLazy",
},
-- Folding -- Folding
{ {

View File

@@ -21,29 +21,3 @@ require("copilot").setup({
["*"] = false, ["*"] = 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,
})