Skip to content

Commit 1eb38af

Browse files
committed
feat(chat): switch to treesitter based chat parsing
this greatly improves performance compared to line by line matching Signed-off-by: Tomas Slusny <[email protected]>
1 parent 1d8aa27 commit 1eb38af

File tree

3 files changed

+250
-182
lines changed

3 files changed

+250
-182
lines changed

lua/CopilotChat/config/mappings.lua

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,4 +584,13 @@ return {
584584
})
585585
end,
586586
},
587+
588+
show_messages = {
589+
normal = 'gm',
590+
callback = function()
591+
copilot.chat:overlay({
592+
text = '```lua' .. vim.inspect(copilot.chat.messages) .. '```',
593+
})
594+
end,
595+
},
587596
}

0 commit comments

Comments
 (0)