(neovim) introduce treesitter-context
This commit is contained in:
parent
41114a6bcb
commit
593d890ba4
1 changed files with 21 additions and 10 deletions
|
@ -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,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue