nvim-config/lua/configs/treesitter-context.lua

17 lines
223 B
Lua
Raw Normal View History

local M = {}
function M.config()
local present, treesitter_context = pcall(require, 'treesitter-context')
if not present then
return
end
treesitter_context.setup {
mode = 'topline',
}
end
return M