feat: add treesitter-context
This commit is contained in:
parent
8597fd488f
commit
b89e94a3ba
1 changed files with 11 additions and 0 deletions
|
@ -77,12 +77,23 @@ return {
|
||||||
config = function()
|
config = function()
|
||||||
require('nvim-treesitter.configs').setup({
|
require('nvim-treesitter.configs').setup({
|
||||||
highlight = { enable = true },
|
highlight = { enable = true },
|
||||||
|
indent = { enable = true },
|
||||||
})
|
})
|
||||||
vim.opt.foldmethod = "expr"
|
vim.opt.foldmethod = "expr"
|
||||||
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
|
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
'nvim-treesitter/nvim-treesitter',
|
||||||
|
config = function ()
|
||||||
|
require('treesitter-context').setup({
|
||||||
|
multiwindow = true,
|
||||||
|
min_window_height = 10,
|
||||||
|
})
|
||||||
|
end
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"nvim-neo-tree/neo-tree.nvim",
|
"nvim-neo-tree/neo-tree.nvim",
|
||||||
branch = "v3.x",
|
branch = "v3.x",
|
||||||
|
|
Loading…
Reference in a new issue