diff --git a/.gitmodules b/.gitmodules index 23eb916..8dcad7f 100644 --- a/.gitmodules +++ b/.gitmodules @@ -258,3 +258,7 @@ path = pack/plugins/start/pest.vim url = git@github.com:pest-parser/pest.vim.git ignore = dirty +[submodule "pack/plugins/start/nvim-treesitter-context"] + path = pack/plugins/start/nvim-treesitter-context + url = git@github.com:nvim-treesitter/nvim-treesitter-context.git + ignore = dirty diff --git a/pack/plugins/start/nvim-treesitter-context b/pack/plugins/start/nvim-treesitter-context new file mode 160000 index 0000000..400a99a --- /dev/null +++ b/pack/plugins/start/nvim-treesitter-context @@ -0,0 +1 @@ +Subproject commit 400a99ad43ac78af1148061da3491cba2637ad29 diff --git a/plugin/treesitter.lua b/plugin/treesitter.lua index 7477c09..fff6f30 100644 --- a/plugin/treesitter.lua +++ b/plugin/treesitter.lua @@ -74,3 +74,7 @@ require('nvim-treesitter.configs').setup({ }, }, }) + +require('treesitter-context').setup({ + multiline_threshold = 1, +})