Closed k-martynov closed 8 months ago
Hi @k-martynov, thanks for your report. I just tried with main
branch. Your screenshot seems a old version.
Could you try with below config? Please make sure that you run :UpdateRemotePlugins
after update the plugin.
{
"jellydn/CopilotChat.nvim",
dependencies = { "zbirenbaum/copilot.lua" },
opts = {
debug = false,
prompts = {
Explain = "Explain how it works.",
Review = "Review the following code and provide concise suggestions.",
Tests = "Briefly explain how the selected code works, then generate unit tests.",
Refactor = "Refactor the code to improve clarity and readability.",
Spelling = "Please correct any grammar and spelling errors in the following text.",
Wording = "Please improve the grammar and wording of the following text.",
},
},
build = function()
vim.notify("Please update the remote plugins by running ':UpdateRemotePlugins', then restart Neovim.")
end,
event = "VeryLazy",
keys = {
{ "<leader>cce", "<cmd>CopilotChatExplain<CR>", desc = "CopilotChat - Explain code" },
{ "<leader>cct", "<cmd>CopilotChatTests<CR>", desc = "CopilotChat - Generate tests" },
{ "<leader>ccr", "<cmd>CopilotChatReview<CR>", desc = "CopilotChat - Review code" },
{ "<leader>ccR", "<cmd>CopilotChatRefactor<CR>", desc = "CopilotChat - Refactor code" },
{ "<leader>ccS", "<cmd>CopilotChatSpelling<CR>", desc = "CopilotChat - Correct spelling" },
{ "<leader>ccw", "<cmd>CopilotChatWording<CR>", desc = "CopilotChat - Improve wording" },
},
},
@jellydn I've used your config but the result still the same:
Do you run UpdateRemotePlugins
command restart Neovim? @k-martynov
@jellydn yes
By the way, what is your Neovim version?
Describe the bug
When I am using Copilot, my syntax highlighting is not working. What am I doing wrong? Here is my configuration:
Reproduction
default config
System Info
Used Package Manager
yarn
Validations