|
@@ -1,56 +1,14 @@
|
|
-local commit = {
|
|
|
|
- alpha_nvim = "14be0ac200f44009672046123c6fcb30724018a5",
|
|
|
|
- bufferline = "5e101b1b4e1ea5b868b8865a5f749b0b5b8f3ccd",
|
|
|
|
- cmp_buffer = "d66c4c2d376e5be99db68d2362cd94d250987525",
|
|
|
|
- cmp_luasnip = "d6f837f4e8fe48eeae288e638691b91b97d1737f",
|
|
|
|
- cmp_nvim_lsp = "ebdfc204afb87f15ce3d3d3f5df0b8181443b5ba",
|
|
|
|
- cmp_path = "466b6b8270f7ba89abd59f402c73f63c7331ff6e",
|
|
|
|
- comment = "a841f73523440c4f32d39f0290cf1e691311db2a",
|
|
|
|
- dapinstall = "24923c3819a450a772bb8f675926d530e829665f",
|
|
|
|
- fixcursorhold = "1bfb32e7ba1344925ad815cb0d7f901dbc0ff7c1",
|
|
|
|
- friendly_snippets = "ad07b2844021b20797adda5b483265802559a693",
|
|
|
|
- gitsigns = "2df360de757c39c04076cb04bcbbd361dec3c8c2",
|
|
|
|
- lua_dev = "a0ee77789d9948adce64d98700cc90cecaef88d5",
|
|
|
|
- lualine = "181b14348f513e6f9eb3bdd2252e13630094fdd3",
|
|
|
|
- luasnip = "ee350179f842699a42b3d6277b2ded8ce73bdc33",
|
|
|
|
- nlsp_settings = "ea9b88e289359843c3cc5bfbf42e5ed9cc3df5f2",
|
|
|
|
- null_ls = "041601cb03daa8982c5af6edc6641f4b97e9d6b5",
|
|
|
|
- nvim_autopairs = "6617498bea01c9c628406d7e23030da57f2f8718",
|
|
|
|
- nvim_cmp = "71d7f46b930bf08e982925c77bd9b0a9808c1162",
|
|
|
|
- nvim_dap = "3d0575a777610b364fea745b85ad497d56b8009a",
|
|
|
|
- nvim_lsp_installer = "dc783087bef65cc7c2943d8641ff1b6dfff6e5a9",
|
|
|
|
- nvim_lspconfig = "710deb04d9f8b73517e1d995a57a1505cbbaac51",
|
|
|
|
- nvim_notify = "f81b48d298c0ff7479b66568d9cc1a4794c196d0",
|
|
|
|
- nvim_tree = "20797a8d74e68bce50b98455c76c5de250c6f0e5",
|
|
|
|
- nvim_treesitter = "fd92e70c69330dd8f2f6753d3d987c34e7dacd24",
|
|
|
|
- nvim_ts_context_commentstring = "097df33c9ef5bbd3828105e4bee99965b758dc3f",
|
|
|
|
- nvim_web_devicons = "4415d1aaa56f73b9c05795af84d625c610b05d3b",
|
|
|
|
- onedarker = "b00dd2189f264c5aeb4cf04c59439655ecd573ec",
|
|
|
|
- packer = "c576ab3f1488ee86d60fd340d01ade08dcabd256",
|
|
|
|
- plenary = "14dfb4071022b22e08384ee125a5607464b6d397",
|
|
|
|
- popup = "b7404d35d5d3548a82149238289fa71f7f6de4ac",
|
|
|
|
- project = "cef52b8da07648b750d7f1e8fb93f12cb9482988",
|
|
|
|
- schemastore = "265eabf9f8ab33cc6bf1683c286b04e280a2b2e7",
|
|
|
|
- structlog = "6f1403a192791ff1fa7ac845a73de9e860f781f1",
|
|
|
|
- telescope = "a36a813d5d031e6f5d52b74986915e68130febd9",
|
|
|
|
- telescope_fzf_native = "8ec164b541327202e5e74f99bcc5fe5845720e18",
|
|
|
|
- toggleterm = "e97d0c1046512e975a9f3fa95afe98f312752b1c",
|
|
|
|
- which_key = "a3c19ec5754debb7bf38a8404e36a9287b282430",
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-return {
|
|
|
|
|
|
+local core_plugins = {
|
|
-- Packer can manage itself as an optional plugin
|
|
-- Packer can manage itself as an optional plugin
|
|
- { "wbthomason/packer.nvim", commit = commit.packer },
|
|
|
|
- { "neovim/nvim-lspconfig", commit = commit.nvim_lspconfig },
|
|
|
|
- { "tamago324/nlsp-settings.nvim", commit = commit.nlsp_settings },
|
|
|
|
|
|
+ { "wbthomason/packer.nvim" },
|
|
|
|
+ { "neovim/nvim-lspconfig" },
|
|
|
|
+ { "tamago324/nlsp-settings.nvim" },
|
|
{
|
|
{
|
|
"jose-elias-alvarez/null-ls.nvim",
|
|
"jose-elias-alvarez/null-ls.nvim",
|
|
- commit = commit.null_ls,
|
|
|
|
},
|
|
},
|
|
- { "antoinemadec/FixCursorHold.nvim", commit = commit.fixcursorhold }, -- Needed while issue https://github.com/neovim/neovim/issues/12587 is still open
|
|
|
|
|
|
+ { "antoinemadec/FixCursorHold.nvim" }, -- Needed while issue https://github.com/neovim/neovim/issues/12587 is still open
|
|
{
|
|
{
|
|
"williamboman/nvim-lsp-installer",
|
|
"williamboman/nvim-lsp-installer",
|
|
- commit = commit.nvim_lsp_installer,
|
|
|
|
},
|
|
},
|
|
{
|
|
{
|
|
"lunarvim/onedarker.nvim",
|
|
"lunarvim/onedarker.nvim",
|
|
@@ -58,26 +16,25 @@ return {
|
|
require("onedarker").setup()
|
|
require("onedarker").setup()
|
|
lvim.builtin.lualine.options.theme = "onedarker"
|
|
lvim.builtin.lualine.options.theme = "onedarker"
|
|
end,
|
|
end,
|
|
- commit = commit.onedarker,
|
|
|
|
disable = lvim.colorscheme ~= "onedarker",
|
|
disable = lvim.colorscheme ~= "onedarker",
|
|
},
|
|
},
|
|
{
|
|
{
|
|
"rcarriga/nvim-notify",
|
|
"rcarriga/nvim-notify",
|
|
- commit = commit.nvim_notify,
|
|
|
|
|
|
+
|
|
config = function()
|
|
config = function()
|
|
require("lvim.core.notify").setup()
|
|
require("lvim.core.notify").setup()
|
|
end,
|
|
end,
|
|
requires = { "nvim-telescope/telescope.nvim" },
|
|
requires = { "nvim-telescope/telescope.nvim" },
|
|
disable = not lvim.builtin.notify.active or not lvim.builtin.telescope.active,
|
|
disable = not lvim.builtin.notify.active or not lvim.builtin.telescope.active,
|
|
},
|
|
},
|
|
- { "Tastyep/structlog.nvim", commit = commit.structlog },
|
|
|
|
|
|
+ { "Tastyep/structlog.nvim" },
|
|
|
|
|
|
- { "nvim-lua/popup.nvim", commit = commit.popup },
|
|
|
|
- { "nvim-lua/plenary.nvim", commit = commit.plenary },
|
|
|
|
|
|
+ { "nvim-lua/popup.nvim" },
|
|
|
|
+ { "nvim-lua/plenary.nvim" },
|
|
-- Telescope
|
|
-- Telescope
|
|
{
|
|
{
|
|
"nvim-telescope/telescope.nvim",
|
|
"nvim-telescope/telescope.nvim",
|
|
- commit = commit.telescope,
|
|
|
|
|
|
+
|
|
config = function()
|
|
config = function()
|
|
require("lvim.core.telescope").setup()
|
|
require("lvim.core.telescope").setup()
|
|
end,
|
|
end,
|
|
@@ -86,14 +43,12 @@ return {
|
|
{
|
|
{
|
|
"nvim-telescope/telescope-fzf-native.nvim",
|
|
"nvim-telescope/telescope-fzf-native.nvim",
|
|
requires = { "nvim-telescope/telescope.nvim" },
|
|
requires = { "nvim-telescope/telescope.nvim" },
|
|
- commit = commit.telescope_fzf_native,
|
|
|
|
run = "make",
|
|
run = "make",
|
|
disable = not lvim.builtin.telescope.active,
|
|
disable = not lvim.builtin.telescope.active,
|
|
},
|
|
},
|
|
-- Install nvim-cmp, and buffer source as a dependency
|
|
-- Install nvim-cmp, and buffer source as a dependency
|
|
{
|
|
{
|
|
"hrsh7th/nvim-cmp",
|
|
"hrsh7th/nvim-cmp",
|
|
- commit = commit.nvim_cmp,
|
|
|
|
config = function()
|
|
config = function()
|
|
if lvim.builtin.cmp then
|
|
if lvim.builtin.cmp then
|
|
require("lvim.core.cmp").setup()
|
|
require("lvim.core.cmp").setup()
|
|
@@ -106,41 +61,33 @@ return {
|
|
},
|
|
},
|
|
{
|
|
{
|
|
"rafamadriz/friendly-snippets",
|
|
"rafamadriz/friendly-snippets",
|
|
- commit = commit.friendly_snippets,
|
|
|
|
},
|
|
},
|
|
{
|
|
{
|
|
"L3MON4D3/LuaSnip",
|
|
"L3MON4D3/LuaSnip",
|
|
config = function()
|
|
config = function()
|
|
require("luasnip/loaders/from_vscode").lazy_load()
|
|
require("luasnip/loaders/from_vscode").lazy_load()
|
|
end,
|
|
end,
|
|
- commit = commit.luasnip,
|
|
|
|
},
|
|
},
|
|
{
|
|
{
|
|
"hrsh7th/cmp-nvim-lsp",
|
|
"hrsh7th/cmp-nvim-lsp",
|
|
- commit = commit.cmp_nvim_lsp,
|
|
|
|
},
|
|
},
|
|
{
|
|
{
|
|
"saadparwaiz1/cmp_luasnip",
|
|
"saadparwaiz1/cmp_luasnip",
|
|
- commit = commit.cmp_luasnip,
|
|
|
|
},
|
|
},
|
|
{
|
|
{
|
|
"hrsh7th/cmp-buffer",
|
|
"hrsh7th/cmp-buffer",
|
|
- commit = commit.cmp_buffer,
|
|
|
|
},
|
|
},
|
|
{
|
|
{
|
|
"hrsh7th/cmp-path",
|
|
"hrsh7th/cmp-path",
|
|
- commit = commit.cmp_path,
|
|
|
|
},
|
|
},
|
|
{
|
|
{
|
|
"folke/lua-dev.nvim",
|
|
"folke/lua-dev.nvim",
|
|
module = "lua-dev",
|
|
module = "lua-dev",
|
|
- commit = commit.lua_dev,
|
|
|
|
},
|
|
},
|
|
|
|
|
|
-- Autopairs
|
|
-- Autopairs
|
|
{
|
|
{
|
|
"windwp/nvim-autopairs",
|
|
"windwp/nvim-autopairs",
|
|
- commit = commit.nvim_autopairs,
|
|
|
|
-- event = "InsertEnter",
|
|
-- event = "InsertEnter",
|
|
config = function()
|
|
config = function()
|
|
require("lvim.core.autopairs").setup()
|
|
require("lvim.core.autopairs").setup()
|
|
@@ -151,7 +98,6 @@ return {
|
|
-- Treesitter
|
|
-- Treesitter
|
|
{
|
|
{
|
|
"nvim-treesitter/nvim-treesitter",
|
|
"nvim-treesitter/nvim-treesitter",
|
|
- commit = commit.nvim_treesitter,
|
|
|
|
branch = vim.fn.has "nvim-0.6" == 1 and "master" or "0.5-compat",
|
|
branch = vim.fn.has "nvim-0.6" == 1 and "master" or "0.5-compat",
|
|
-- run = ":TSUpdate",
|
|
-- run = ":TSUpdate",
|
|
config = function()
|
|
config = function()
|
|
@@ -160,7 +106,6 @@ return {
|
|
},
|
|
},
|
|
{
|
|
{
|
|
"JoosepAlviste/nvim-ts-context-commentstring",
|
|
"JoosepAlviste/nvim-ts-context-commentstring",
|
|
- commit = commit.nvim_ts_context_commentstring,
|
|
|
|
event = "BufReadPost",
|
|
event = "BufReadPost",
|
|
},
|
|
},
|
|
|
|
|
|
@@ -169,7 +114,6 @@ return {
|
|
"kyazdani42/nvim-tree.lua",
|
|
"kyazdani42/nvim-tree.lua",
|
|
-- event = "BufWinOpen",
|
|
-- event = "BufWinOpen",
|
|
-- cmd = "NvimTreeToggle",
|
|
-- cmd = "NvimTreeToggle",
|
|
- commit = commit.nvim_tree,
|
|
|
|
config = function()
|
|
config = function()
|
|
require("lvim.core.nvimtree").setup()
|
|
require("lvim.core.nvimtree").setup()
|
|
end,
|
|
end,
|
|
@@ -178,7 +122,6 @@ return {
|
|
|
|
|
|
{
|
|
{
|
|
"lewis6991/gitsigns.nvim",
|
|
"lewis6991/gitsigns.nvim",
|
|
- commit = commit.gitsigns,
|
|
|
|
|
|
|
|
config = function()
|
|
config = function()
|
|
require("lvim.core.gitsigns").setup()
|
|
require("lvim.core.gitsigns").setup()
|
|
@@ -190,7 +133,6 @@ return {
|
|
-- Whichkey
|
|
-- Whichkey
|
|
{
|
|
{
|
|
"folke/which-key.nvim",
|
|
"folke/which-key.nvim",
|
|
- commit = commit.which_key,
|
|
|
|
config = function()
|
|
config = function()
|
|
require("lvim.core.which-key").setup()
|
|
require("lvim.core.which-key").setup()
|
|
end,
|
|
end,
|
|
@@ -201,7 +143,6 @@ return {
|
|
-- Comments
|
|
-- Comments
|
|
{
|
|
{
|
|
"numToStr/Comment.nvim",
|
|
"numToStr/Comment.nvim",
|
|
- commit = commit.comment,
|
|
|
|
event = "BufRead",
|
|
event = "BufRead",
|
|
config = function()
|
|
config = function()
|
|
require("lvim.core.comment").setup()
|
|
require("lvim.core.comment").setup()
|
|
@@ -212,7 +153,6 @@ return {
|
|
-- project.nvim
|
|
-- project.nvim
|
|
{
|
|
{
|
|
"ahmedkhalf/project.nvim",
|
|
"ahmedkhalf/project.nvim",
|
|
- commit = commit.project,
|
|
|
|
config = function()
|
|
config = function()
|
|
require("lvim.core.project").setup()
|
|
require("lvim.core.project").setup()
|
|
end,
|
|
end,
|
|
@@ -220,13 +160,12 @@ return {
|
|
},
|
|
},
|
|
|
|
|
|
-- Icons
|
|
-- Icons
|
|
- { "kyazdani42/nvim-web-devicons", commit = commit.nvim_web_devicons },
|
|
|
|
|
|
+ { "kyazdani42/nvim-web-devicons" },
|
|
|
|
|
|
-- Status Line and Bufferline
|
|
-- Status Line and Bufferline
|
|
{
|
|
{
|
|
-- "hoob3rt/lualine.nvim",
|
|
-- "hoob3rt/lualine.nvim",
|
|
"nvim-lualine/lualine.nvim",
|
|
"nvim-lualine/lualine.nvim",
|
|
- commit = commit.lualine,
|
|
|
|
-- "Lunarvim/lualine.nvim",
|
|
-- "Lunarvim/lualine.nvim",
|
|
config = function()
|
|
config = function()
|
|
require("lvim.core.lualine").setup()
|
|
require("lvim.core.lualine").setup()
|
|
@@ -236,7 +175,6 @@ return {
|
|
|
|
|
|
{
|
|
{
|
|
"akinsho/bufferline.nvim",
|
|
"akinsho/bufferline.nvim",
|
|
- commit = commit.bufferline,
|
|
|
|
config = function()
|
|
config = function()
|
|
require("lvim.core.bufferline").setup()
|
|
require("lvim.core.bufferline").setup()
|
|
end,
|
|
end,
|
|
@@ -247,7 +185,6 @@ return {
|
|
-- Debugging
|
|
-- Debugging
|
|
{
|
|
{
|
|
"mfussenegger/nvim-dap",
|
|
"mfussenegger/nvim-dap",
|
|
- commit = commit.nvim_dap,
|
|
|
|
-- event = "BufWinEnter",
|
|
-- event = "BufWinEnter",
|
|
config = function()
|
|
config = function()
|
|
require("lvim.core.dap").setup()
|
|
require("lvim.core.dap").setup()
|
|
@@ -258,7 +195,6 @@ return {
|
|
-- Debugger management
|
|
-- Debugger management
|
|
{
|
|
{
|
|
"Pocco81/DAPInstall.nvim",
|
|
"Pocco81/DAPInstall.nvim",
|
|
- commit = commit.dapinstall,
|
|
|
|
-- event = "BufWinEnter",
|
|
-- event = "BufWinEnter",
|
|
-- event = "BufRead",
|
|
-- event = "BufRead",
|
|
disable = not lvim.builtin.dap.active,
|
|
disable = not lvim.builtin.dap.active,
|
|
@@ -270,14 +206,12 @@ return {
|
|
config = function()
|
|
config = function()
|
|
require("lvim.core.alpha").setup()
|
|
require("lvim.core.alpha").setup()
|
|
end,
|
|
end,
|
|
- commit = commit.alpha_nvim,
|
|
|
|
disable = not lvim.builtin.alpha.active,
|
|
disable = not lvim.builtin.alpha.active,
|
|
},
|
|
},
|
|
|
|
|
|
-- Terminal
|
|
-- Terminal
|
|
{
|
|
{
|
|
"akinsho/toggleterm.nvim",
|
|
"akinsho/toggleterm.nvim",
|
|
- commit = commit.toggleterm,
|
|
|
|
event = "BufWinEnter",
|
|
event = "BufWinEnter",
|
|
config = function()
|
|
config = function()
|
|
require("lvim.core.terminal").setup()
|
|
require("lvim.core.terminal").setup()
|
|
@@ -288,6 +222,13 @@ return {
|
|
-- SchemaStore
|
|
-- SchemaStore
|
|
{
|
|
{
|
|
"b0o/schemastore.nvim",
|
|
"b0o/schemastore.nvim",
|
|
- commit = commit.schemastore,
|
|
|
|
},
|
|
},
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+for _, entry in ipairs(core_plugins) do
|
|
|
|
+ if not os.getenv "LVIM_DEV_MODE" then
|
|
|
|
+ entry["lock"] = true
|
|
|
|
+ end
|
|
|
|
+end
|
|
|
|
+
|
|
|
|
+return core_plugins
|