diff --git a/dots/.nvim-environments/primary/config/lua/plugins/configs/treesitter.lua b/dots/.nvim-environments/primary/config/lua/plugins/configs/treesitter.lua index bc10f853..cb626db9 100755 --- a/dots/.nvim-environments/primary/config/lua/plugins/configs/treesitter.lua +++ b/dots/.nvim-environments/primary/config/lua/plugins/configs/treesitter.lua @@ -19,3 +19,6 @@ nvim_treesitter.setup({ max_file_lines = nil, }, }) + +require('treesitter-context').setup({}) +vim.cmd.TSContextEnable() diff --git a/dots/.nvim-environments/primary/config/lua/plugins/plugins.lua b/dots/.nvim-environments/primary/config/lua/plugins/plugins.lua index 7f0ecebd..4719bd60 100755 --- a/dots/.nvim-environments/primary/config/lua/plugins/plugins.lua +++ b/dots/.nvim-environments/primary/config/lua/plugins/plugins.lua @@ -102,6 +102,7 @@ return packer.startup({ run = ":TSUpdate", requires = { "p00f/nvim-ts-rainbow", + "nvim-treesitter/nvim-treesitter-context" }, config = function() require("plugins.configs.treesitter")