Install treesitter on mac only
This commit is contained in:
parent
93cde742ca
commit
209dfd6998
|
@ -4,14 +4,12 @@ function M.setup()
|
||||||
local paq = require("paq")
|
local paq = require("paq")
|
||||||
local themePackages = require("my.theme").deps
|
local themePackages = require("my.theme").deps
|
||||||
local base = {
|
local base = {
|
||||||
|
"nvim-lua/plenary.nvim", -- async utility lib it seems?
|
||||||
"neovim/nvim-lspconfig", -- configures lsps for me
|
"neovim/nvim-lspconfig", -- configures lsps for me
|
||||||
"windwp/nvim-autopairs", -- closes pairs for me (should look for a better one)
|
"windwp/nvim-autopairs", -- closes pairs for me (should look for a better one)
|
||||||
"nvim-lua/plenary.nvim", -- async utility lib it seems?
|
|
||||||
"nvim-telescope/telescope.nvim", -- fuzzy search for say opening files
|
"nvim-telescope/telescope.nvim", -- fuzzy search for say opening files
|
||||||
"purescript-contrib/purescript-vim", -- purescript support
|
"purescript-contrib/purescript-vim", -- purescript support
|
||||||
"terrortylor/nvim-comment", -- allows toggling line comments
|
"terrortylor/nvim-comment", -- allows toggling line comments
|
||||||
-- This gets installed by nix now!
|
|
||||||
-- {"nvim-treesitter/nvim-treesitter", run = ":TSUpdate"}, -- use treesitter for syntax highlighting
|
|
||||||
"nvim-treesitter/nvim-treesitter-textobjects", -- the lean plugin wants me to install this, lol
|
"nvim-treesitter/nvim-treesitter-textobjects", -- the lean plugin wants me to install this, lol
|
||||||
-- "startup-nvim/startup.nvim", -- splash screen
|
-- "startup-nvim/startup.nvim", -- splash screen
|
||||||
"glepnir/dashboard-nvim", -- similar to startup.nvim
|
"glepnir/dashboard-nvim", -- similar to startup.nvim
|
||||||
|
@ -54,7 +52,10 @@ function M.setup()
|
||||||
"TimUntersberger/neogit" -- magit clone
|
"TimUntersberger/neogit" -- magit clone
|
||||||
}
|
}
|
||||||
|
|
||||||
table.insert(base, "nvim-treesitter/nvim-treesitter")
|
-- This might get installed by nix!
|
||||||
|
if os.getenv("NVIM_INSTALL_TREESITTER") then
|
||||||
|
table.insert(base, 2, { "nvim-treesitter/nvim-treesitter", run = ":TSUpdate" })
|
||||||
|
end
|
||||||
|
|
||||||
for _, v in ipairs(themePackages) do
|
for _, v in ipairs(themePackages) do
|
||||||
-- append package in the base list
|
-- append package in the base list
|
||||||
|
|
Loading…
Reference in a new issue