(neovim) introduce treesitter-context

This commit is contained in:
Bartek Stalewski 2025-09-15 10:39:33 +02:00
parent 41114a6bcb
commit 593d890ba4
Signed by: ftpd
SSH key fingerprint: SHA256:vGQiaNJcfUMLt3wF58+Zx15C6SpRDA9spUeggjVY8Yo

View file

@ -24,14 +24,25 @@ if MainHost then
end end
return { return {
"nvim-treesitter/nvim-treesitter", {
build = ":TSUpdate", "nvim-treesitter/nvim-treesitter",
event = "VeryLazy", build = ":TSUpdate",
config = function() event = "VeryLazy",
require("nvim-treesitter.configs").setup({ config = function()
ensure_installed = treesitter_modules, require("nvim-treesitter.configs").setup({
highlight = { enable = true }, ensure_installed = treesitter_modules,
indent = { enable = true }, highlight = { enable = true },
}) indent = { enable = true },
end, })
end,
},
{
"nvim-treesitter/nvim-treesitter-context",
event = "VeryLazy",
config = function()
require("treesitter-context").setup({
separator = "-",
})
end,
}
} }