Skip to content

Commit c93f16e

Browse files
committed
refactor: lock packages
1 parent f1d4838 commit c93f16e

File tree

1 file changed

+30
-15
lines changed

1 file changed

+30
-15
lines changed

home-manager/common/neovim/init.lua

Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ vim.opt.rtp:prepend(lazypath)
230230
-- NOTE: Here is where you install your plugins.
231231
require('lazy').setup({
232232
-- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link).
233-
'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically
233+
{ 'tpope/vim-sleuth', commit = '1cc4557420f215d02c4d2645a748a816c220e99b' }, -- Detect tabstop and shiftwidth automatically
234234

235235
-- NOTE: Plugins can also be added by using a table,
236236
-- with the first argument being the link and the following
@@ -242,7 +242,7 @@ require('lazy').setup({
242242
-- require('Comment').setup({})
243243

244244
-- "gc" to comment visual regions/lines
245-
{ 'numToStr/Comment.nvim', opts = {} },
245+
{ 'numToStr/Comment.nvim', commit = 'e30b7f2008e52442154b66f7c519bfd2f1e32acb', opts = {} },
246246

247247
-- Here is a more advanced example where we pass configuration
248248
-- options to `gitsigns.nvim`. This is equivalent to the following Lua:
@@ -251,6 +251,7 @@ require('lazy').setup({
251251
-- See `:help gitsigns` to understand what the configuration keys do
252252
{ -- Adds git related signs to the gutter, as well as utilities for managing changes
253253
'lewis6991/gitsigns.nvim',
254+
commit = '220446c8c86a280180d852efac60991eaf1a21d4',
254255
opts = {
255256
signs = {
256257
add = { text = '+' },
@@ -279,6 +280,7 @@ require('lazy').setup({
279280

280281
{ -- Useful plugin to show you pending keybinds.
281282
'folke/which-key.nvim',
283+
commit = 'af4ded85542d40e190014c732fa051bdbf88be3d',
282284
event = 'VimEnter', -- Sets the loading event to 'VimEnter'
283285
config = function() -- This is the function that runs, AFTER loading
284286
require('which-key').setup()
@@ -310,11 +312,12 @@ require('lazy').setup({
310312
{ -- Fuzzy Finder (files, lsp, etc)
311313
'nvim-telescope/telescope.nvim',
312314
event = 'VimEnter',
313-
branch = '0.1.x',
315+
commit = 'a0bbec21143c7bc5f8bb02e0005fa0b982edc026',
314316
dependencies = {
315-
'nvim-lua/plenary.nvim',
317+
{ 'nvim-lua/plenary.nvim', commit = 'a3e3bc82a3f95c5ed0d7201546d5d2c19b20d683' },
316318
{ -- If encountering errors, see telescope-fzf-native README for installation instructions
317319
'nvim-telescope/telescope-fzf-native.nvim',
320+
commit = 'cf48d4dfce44e0b9a2e19a008d6ec6ea6f01a83b',
318321

319322
-- `build` is used to run some command when the plugin is installed/updated.
320323
-- This is only run then, not every time Neovim starts up.
@@ -326,10 +329,10 @@ require('lazy').setup({
326329
return vim.fn.executable 'make' == 1
327330
end,
328331
},
329-
{ 'nvim-telescope/telescope-ui-select.nvim' },
332+
{ 'nvim-telescope/telescope-ui-select.nvim', commit = '6e51d7da30bd139a6950adf2a47fda6df9fa06d2' },
330333

331334
-- Useful for getting pretty icons, but requires a Nerd Font.
332-
{ 'nvim-tree/nvim-web-devicons', enabled = vim.g.have_nerd_font },
335+
{ 'nvim-tree/nvim-web-devicons', commit = 'c0cfc1738361b5da1cd0a962dd6f774cc444f856', enabled = vim.g.have_nerd_font },
333336
},
334337
config = function()
335338
-- Telescope is a fuzzy finder that comes with a lot of different things that
@@ -414,19 +417,19 @@ require('lazy').setup({
414417

415418
{ -- LSP Configuration & Plugins
416419
'neovim/nvim-lspconfig',
420+
commit = 'cf97d2485fc3f6d4df1b79a3ea183e24c272215e',
417421
dependencies = {
418422
-- Automatically install LSPs and related tools to stdpath for Neovim
419-
{ 'williamboman/mason.nvim', config = true }, -- NOTE: Must be loaded before dependants
420-
'williamboman/mason-lspconfig.nvim',
421-
'WhoIsSethDaniel/mason-tool-installer.nvim',
423+
{ 'williamboman/mason.nvim', commit = '2af3b574b68dc0273c7fb60369f3a48d5a16a857', config = true }, -- NOTE: Must be loaded before dependants
424+
{ 'williamboman/mason-lspconfig.nvim', commit = '37a336b653f8594df75c827ed589f1c91d91ff6c' },
422425

423426
-- Useful status updates for LSP.
424427
-- NOTE: `opts = {}` is the same as calling `require('fidget').setup({})`
425-
{ 'j-hui/fidget.nvim', opts = {} },
428+
{ 'j-hui/fidget.nvim', commit = 'c12f8a58ee472ce5983c3a3f3aad0ff6c49a6a83', opts = {} },
426429

427430
-- `neodev` configures Lua LSP for your Neovim config, runtime and plugins
428431
-- used for completion, annotations and signatures of Neovim apis
429-
{ 'folke/neodev.nvim', opts = {} },
432+
{ 'folke/neodev.nvim', commit = '46aa467dca16cf3dfe27098042402066d2ae242d', opts = {} },
430433
},
431434
config = function()
432435
-- Brief aside: **What is LSP?**
@@ -631,6 +634,7 @@ require('lazy').setup({
631634

632635
{ -- Autoformat
633636
'stevearc/conform.nvim',
637+
commit = 'cd75be867f2331b22905f47d28c0c270a69466aa',
634638
lazy = false,
635639
keys = {
636640
{
@@ -668,11 +672,13 @@ require('lazy').setup({
668672

669673
{ -- Autocompletion
670674
'hrsh7th/nvim-cmp',
675+
commit = 'a110e12d0b58eefcf5b771f533fc2cf3050680ac',
671676
event = 'InsertEnter',
672677
dependencies = {
673678
-- Snippet Engine & its associated nvim-cmp source
674679
{
675680
'L3MON4D3/LuaSnip',
681+
commit = 'ce0a05ab4e2839e1c48d072c5236cce846a387bc',
676682
build = (function()
677683
-- Build Step is needed for regex support in snippets.
678684
-- This step is not supported in many windows environments.
@@ -694,13 +700,13 @@ require('lazy').setup({
694700
-- },
695701
},
696702
},
697-
'saadparwaiz1/cmp_luasnip',
703+
{ 'saadparwaiz1/cmp_luasnip', commit = '05a9ab28b53f71d1aece421ef32fee2cb857a843' },
698704

699705
-- Adds other completion capabilities.
700706
-- nvim-cmp does not ship with all sources by default. They are split
701707
-- into multiple repos for maintenance purposes.
702-
'hrsh7th/cmp-nvim-lsp',
703-
'hrsh7th/cmp-path',
708+
{ 'hrsh7th/cmp-nvim-lsp', commit = '39e2eda76828d88b773cc27a3f61d2ad782c922d' },
709+
{ 'hrsh7th/cmp-path', commit = '91ff86cd9c29299a64f968ebb45846c485725f23' },
704710
},
705711
config = function()
706712
-- See `:help cmp`
@@ -783,6 +789,7 @@ require('lazy').setup({
783789
--
784790
-- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`.
785791
'folke/tokyonight.nvim',
792+
commit = '0a84c2df1dc65610ee0d9b516b2fb342e4b0ed6f',
786793
priority = 1000, -- Make sure to load this before all the other start plugins.
787794
init = function()
788795
-- Load the colorscheme here.
@@ -796,10 +803,17 @@ require('lazy').setup({
796803
},
797804

798805
-- Highlight todo, notes, etc in comments
799-
{ 'folke/todo-comments.nvim', event = 'VimEnter', dependencies = { 'nvim-lua/plenary.nvim' }, opts = { signs = false } },
806+
{
807+
'folke/todo-comments.nvim',
808+
commit = '313b04e5b02d29ab9275c9295ff5e2b73921b0eb',
809+
event = 'VimEnter',
810+
dependencies = { 'nvim-lua/plenary.nvim' },
811+
opts = { signs = false },
812+
},
800813

801814
{ -- Collection of various small independent plugins/modules
802815
'echasnovski/mini.nvim',
816+
commit = '072ef026a538cf4a9dedba56ad8eecffa9e9abb6',
803817
config = function()
804818
-- Better Around/Inside textobjects
805819
--
@@ -837,6 +851,7 @@ require('lazy').setup({
837851
},
838852
{ -- Highlight, edit, and navigate code
839853
'nvim-treesitter/nvim-treesitter',
854+
commit = 'c1ad655b6a0c83ab48e55240f367e2bc0c15af31',
840855
build = ':TSUpdate',
841856
opts = {
842857
ensure_installed = { 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'vim', 'vimdoc' },

0 commit comments

Comments
 (0)