nvim-config/lua/configs/treesitter-context.lua
2024-01-09 13:37:37 -08:00

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