nvim: add treesitter-context plugin
This commit is contained in:
parent
d80c3aae8b
commit
1913382d64
1 changed files with 7 additions and 0 deletions
|
@ -8,6 +8,7 @@ if fn.empty(fn.glob(install_path)) > 0 then
|
||||||
end
|
end
|
||||||
-- }}
|
-- }}
|
||||||
|
|
||||||
|
-- set packer threads {{
|
||||||
-- Reduce the maximum number of jobs in termux (a terminal for android) or if WEAK_SYSTEM is set to true
|
-- 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
|
if (os.getenv("TERMUX_VERSION") ~= nil) or (os.getenv("WEAK_SYSTEM") == "true") then
|
||||||
Packer_max_jobs = 5
|
Packer_max_jobs = 5
|
||||||
|
@ -16,6 +17,7 @@ else
|
||||||
end
|
end
|
||||||
|
|
||||||
local use = require('packer').use
|
local use = require('packer').use
|
||||||
|
-- }}
|
||||||
|
|
||||||
return require('packer').startup({function()
|
return require('packer').startup({function()
|
||||||
-- TODO: Find a better way to organize this
|
-- TODO: Find a better way to organize this
|
||||||
|
@ -111,6 +113,11 @@ return require('packer').startup({function()
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-- Tree-sitter
|
||||||
|
use { -- treesitter-context: equivalent to vsc*de's "sticky scrolling"
|
||||||
|
'nvim-treesitter/nvim-treesitter-context'
|
||||||
|
}
|
||||||
|
|
||||||
-- IDE features
|
-- IDE features
|
||||||
---- LSP
|
---- LSP
|
||||||
use { -- lspinstall: language server installer, (lspconfig is here too)
|
use { -- lspinstall: language server installer, (lspconfig is here too)
|
||||||
|
|
Loading…
Add table
Reference in a new issue