From 79896c4e6faa6521b454121a9c070cffb1e81df2 Mon Sep 17 00:00:00 2001 From: Tomas Slusny Date: Wed, 20 Nov 2024 23:30:19 +0100 Subject: [PATCH] feat: support for markdown outlines Signed-off-by: Tomas Slusny --- lua/CopilotChat/context.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lua/CopilotChat/context.lua b/lua/CopilotChat/context.lua index 81be2693..f751896f 100644 --- a/lua/CopilotChat/context.lua +++ b/lua/CopilotChat/context.lua @@ -22,6 +22,14 @@ local outline_types = { 'type_alias_declaration', 'import_statement', 'import_from_statement', + -- markdown + 'atx_h1_marker', + 'atx_h2_marker', + 'atx_h3_marker', + 'atx_h4_marker', + 'atx_h5_marker', + 'list_item', + 'block_quote', } local comment_types = {