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
2 changes: 1 addition & 1 deletion lua/CopilotChat/context.lua
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ end
---@param bufnr number
---@return CopilotChat.copilot.embed?
function M.build_outline(bufnr)
local ft = vim.bo[bufnr].filetype
local ft = string.gsub(vim.bo[bufnr].filetype, 'react', '')
local name = vim.api.nvim_buf_get_name(bufnr)
local parser = vim.treesitter.get_parser(bufnr, ft)
if not parser then
Expand Down
5 changes: 4 additions & 1 deletion lua/CopilotChat/debuginfo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ function M.setup()
local height = math.min(vim.o.lines - 3, #lines)
local opts = {
title = 'CopilotChat.nvim Debug Info',
footer = "Press 'q' to close this window.",
relative = 'editor',
width = width,
height = height,
Expand All @@ -46,6 +45,10 @@ function M.setup()
border = 'rounded',
}

if not utils.is_stable() then
opts.footer = "Press 'q' to close this window."
end

local bufnr = vim.api.nvim_create_buf(false, true)
vim.bo[bufnr].syntax = 'markdown'
vim.api.nvim_buf_set_lines(bufnr, 0, -1, false, lines)
Expand Down