16 lines
271 B
Lua
16 lines
271 B
Lua
local M = {}
|
|
|
|
function M.config()
|
|
local present, treesitter_context = pcall(require, 'treesitter-context')
|
|
if not present then
|
|
return
|
|
end
|
|
|
|
-- line number highlight group: TreesitterContextLineNumber
|
|
treesitter_context.setup({
|
|
mode = 'topline',
|
|
})
|
|
end
|
|
|
|
return M
|