2022-10-02 21:12:53 +00:00
|
|
|
local M = {}
|
|
|
|
|
|
|
|
function M.config()
|
|
|
|
local present, treesitter_context = pcall(require, 'treesitter-context')
|
|
|
|
if not present then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
2024-01-09 21:37:37 +00:00
|
|
|
-- line number highlight group: TreesitterContextLineNumber
|
2023-01-10 18:21:09 +00:00
|
|
|
treesitter_context.setup({
|
|
|
|
mode = 'topline',
|
|
|
|
})
|
2022-10-02 21:12:53 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
return M
|