nvim: add treesitter-context plugin

This commit is contained in:
PowerUser64 2022-10-23 05:10:11 -07:00
parent d80c3aae8b
commit 1913382d64

View file

@ -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)