Skip to content

Commit 249244d

Browse files
committed
Update treesitter context window background color
1 parent 420ee09 commit 249244d

2 files changed

Lines changed: 15 additions & 5 deletions

File tree

‎lua/plugins/fzf-lua.lua‎

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,19 @@ return function()
3131
enabled = true, -- Enable treesitter preview
3232
disabled = {}, -- Disable for specific filetypes
3333
context = {
34-
enabled = true, -- Enable context preview
35-
line_numbers = true, -- Show line numbers in context
36-
max_lines = 10, -- Maximum lines to show in context
37-
min_lines = 1, -- Minimum lines to show in context
38-
trim_scope = "outer" -- Show outer context lines
34+
enable = true, -- Enable this plugin (Can be enabled/disabled later via commands)
35+
multiwindow = false, -- Enable multiwindow support.
36+
max_lines = 0, -- How many lines the window should span. Values <= 0 mean no limit.
37+
min_window_height = 0, -- Minimum editor window height to enable context. Values <= 0 mean no limit.
38+
line_numbers = true,
39+
multiline_threshold = 20, -- Maximum number of lines to show for a single context
40+
trim_scope = 'outer', -- Which context lines to discard if `max_lines` is exceeded. Choices: 'inner', 'outer'
41+
mode = 'cursor', -- Line used to calculate context. Choices: 'cursor', 'topline'
42+
-- Separator between context and content. Should be a single character string, like '-'.
43+
-- When separator is set, the context will only show up when there are at least 2 lines above cursorline.
44+
separator = nil,
45+
zindex = 20, -- The Z-index of the context window
46+
on_attach = nil -- (fun(buf: integer): boolean) return false to disable attaching
3947
}
4048
}
4149
}

‎lua/plugins/treesitter-context.lua‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,6 @@ require('treesitter-context').setup({
1111
zindex = 20, -- The Z-index of the context window
1212
on_attach = nil, -- (fun(buf: integer): boolean) return false to disable attaching
1313
});
14+
15+
vim.cmd("hi TreesitterContext guibg=#414a58")
1416
end

0 commit comments

Comments
 (0)