-
I wasn't sure if this is an issue with require("lazy").setup({
{
'nvim-treesitter/nvim-treesitter',
build = ':TSUpdate',
event = 'VeryLazy',
dependencies = {
'treesitter-context',
},
config = function()
require'nvim-treesitter.configs'.setup({
ensure_installed = {'lua'},
highlight = {enable = true},
incremental_selection = {
enable = true,
keymaps = {
init_selection = 'gni',
node_incremental = 'gnn',
scope_incremental = 'gno',
node_decremental = 'gne',
},
},
indent = {
enable = true,
disable = {'python'},
},
folding = {enable = true},
})
end,
},
{
'nvim-treesitter/nvim-treesitter-context',
name = 'treesitter-context',
-- IF I UNCOMMENT THIS IT WORKS
lazy = true,
},
}) If I then open a file and call
but if I uncommend the line |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Try calling |
Beta Was this translation helpful? Give feedback.
-
You need to add |
Beta Was this translation helpful? Give feedback.
You need to add
config=true
oropts={}
to that treesitter context spec