From 1913382d64d763e74cccef16615abdbd07009d45 Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Sun, 23 Oct 2022 05:10:11 -0700 Subject: [PATCH] nvim: add treesitter-context plugin --- .config/nvim/lua/blake/plugins.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.config/nvim/lua/blake/plugins.lua b/.config/nvim/lua/blake/plugins.lua index b1342b1..0970215 100644 --- a/.config/nvim/lua/blake/plugins.lua +++ b/.config/nvim/lua/blake/plugins.lua @@ -8,6 +8,7 @@ if fn.empty(fn.glob(install_path)) > 0 then end -- }} +-- set packer threads {{ -- Reduce the maximum number of jobs in termux (a terminal for android) or if WEAK_SYSTEM is set to true if (os.getenv("TERMUX_VERSION") ~= nil) or (os.getenv("WEAK_SYSTEM") == "true") then Packer_max_jobs = 5 @@ -16,6 +17,7 @@ else end local use = require('packer').use +-- }} return require('packer').startup({function() -- TODO: Find a better way to organize this @@ -111,6 +113,11 @@ return require('packer').startup({function() end } + -- Tree-sitter + use { -- treesitter-context: equivalent to vsc*de's "sticky scrolling" + 'nvim-treesitter/nvim-treesitter-context' + } + -- IDE features ---- LSP use { -- lspinstall: language server installer, (lspconfig is here too)