From 756669baf4a66c0633160e723ab07c9433f4505c Mon Sep 17 00:00:00 2001 From: mjkx <291083247@qq.com> Date: Sat, 25 May 2024 09:17:40 +0800 Subject: [PATCH] set trim_scope to inner Signed-off-by: mjkx <291083247@qq.com> --- lua/modules/configs/editor/ts-context.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/modules/configs/editor/ts-context.lua b/lua/modules/configs/editor/ts-context.lua index 03938cea2..67ebcf055 100644 --- a/lua/modules/configs/editor/ts-context.lua +++ b/lua/modules/configs/editor/ts-context.lua @@ -5,7 +5,7 @@ return function() min_window_height = 0, -- Minimum editor window height to enable context. Values <= 0 mean no limit. line_numbers = true, multiline_threshold = 20, -- Maximum number of lines to collapse for a single context line - trim_scope = "outer", -- Which context lines to discard if `max_lines` is exceeded. Choices: 'inner', 'outer' + trim_scope = "inner", -- Which context lines to discard if `max_lines` is exceeded. Choices: 'inner', 'outer' mode = "cursor", -- Line used to calculate context. Choices: 'cursor', 'topline' zindex = 50, })