Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion lua/CopilotChat/completion.lua
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ end
--- Omnifunc for the chat window completion.
---@param findstart integer 0 or 1, decides behavior
---@param base integer findstart=0, text to match against
---@param _ any
---@return number|table
function M.omnifunc(findstart, base)
assert(base)
Expand Down
3 changes: 1 addition & 2 deletions lua/CopilotChat/config/mappings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ end
---@field yank_diff CopilotChat.config.mapping.yank_diff|false|nil
---@field show_diff CopilotChat.config.mapping.show_diff|false|nil
---@field show_info CopilotChat.config.mapping|false|nil
---@field show_context CopilotChat.config.mapping|false|nil
---@field show_help CopilotChat.config.mapping|false|nil
return {
complete = {
Expand Down Expand Up @@ -513,7 +512,7 @@ return {
for _, resource in ipairs(resolved_resources) do
local resource_lines = vim.split(resource.data, '\n')
local preview = vim.list_slice(resource_lines, 1, math.min(10, #resource_lines))
local header = string.format('**%s** (%s lines)', resource.name, #resource_lines)
local header = string.format('**%s** (%s lines)', resource.uri, #resource_lines)
if #resource_lines > 10 then
header = header .. ' (truncated)'
end
Expand Down
Loading