diff --git a/dotfiles/neovim/lua/my/paq.lua b/dotfiles/neovim/lua/my/paq.lua index 3c5c9d4..de9f3be 100644 --- a/dotfiles/neovim/lua/my/paq.lua +++ b/dotfiles/neovim/lua/my/paq.lua @@ -4,14 +4,12 @@ function M.setup() local paq = require("paq") local themePackages = require("my.theme").deps local base = { + "nvim-lua/plenary.nvim", -- async utility lib it seems? "neovim/nvim-lspconfig", -- configures lsps for me "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 "purescript-contrib/purescript-vim", -- purescript support "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 -- "startup-nvim/startup.nvim", -- splash screen "glepnir/dashboard-nvim", -- similar to startup.nvim @@ -54,7 +52,10 @@ function M.setup() "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 -- append package in the base list