Skip to content

Commit 9a63e83

Browse files
authored
fix(ui): increase separator virt_text priority (#1424)
Set the separator virtual text priority to 2000 to ensure it overrides other plugins' virtual text overlays in the chat UI (render-markdown.nvim uses 1000)
1 parent 1b176f2 commit 9a63e83

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/CopilotChat/ui/chat.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ function Chat:render()
794794
{ string.rep(self.separator, vim.go.columns - #header_value - 1), 'CopilotChatSeparator' },
795795
},
796796
virt_text_pos = 'overlay',
797-
priority = 300,
797+
priority = 2000, -- High priority to override other plugins if enabled
798798
strict = false,
799799
})
800800

0 commit comments

Comments
 (0)