From bc8203b6c6f15f698561f9d2a428902aa211aee4 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Tue, 25 Oct 2022 19:10:12 -0500 Subject: [PATCH] feat(nvim): add nvim-treesitter-context --- .../primary/config/lua/plugins/configs/treesitter.lua | 3 +++ dots/.nvim-environments/primary/config/lua/plugins/plugins.lua | 1 + 2 files changed, 4 insertions(+) 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")