Skip to content

Commit

Permalink
fix(chat): syntax highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
olimorris committed Sep 11, 2024
1 parent 5752989 commit 1ee1b86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/codecompanion/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ M.setup = function(opts)
for name, var in pairs(M.config.strategies.chat.variables) do
vim.cmd.syntax('match CodeCompanionChatVariable "#' .. name .. '"')
if var.opts and var.opts.has_params then
vim.cmd.syntax('match CodeCompanionChatVariable ":\\d\\+-\\?\\d\\+"')
vim.cmd.syntax('match CodeCompanionChatVariable "#' .. name .. ':\\d\\+-\\?\\d\\+"')
end
end
for name, _ in pairs(M.config.strategies.agent.tools) do
Expand Down

0 comments on commit 1ee1b86

Please sign in to comment.