1
0

Replace plug w/ vim.pack()

This commit is contained in:
2026-03-30 02:01:51 -04:00
parent 0a2e95ebfc
commit d6f050f812
+20 -30
View File
@@ -42,39 +42,29 @@ vim.diagnostic.config({
}, },
}) })
local Plug = vim.fn['plug#'] local gh = function(x) return 'https://github.com/' .. x end
vim.call('plug#begin') vim.pack.add {
Plug('junegunn/fzf', { ['do'] = function() vim.call('fzf#install') end }) {
Plug 'junegunn/fzf.vim' src=gh('junegunn/fzf'),
build = function()
vim.fn.system("./install --all")
end
},
{ src=gh('junegunn/fzf.vim')},
Plug 'numToStr/Comment.nvim' { src=gh('numToStr/Comment.nvim')},
Plug 'andymass/vim-matchup' { src=gh('andymass/vim-matchup')},
Plug 'windwp/nvim-autopairs' { src=gh('windwp/nvim-autopairs')},
Plug 'mbbill/undotree' { src=gh('mbbill/undotree')},
Plug 'max397574/better-escape.nvim' { src=gh('max397574/better-escape.nvim')},
Plug 'tzachar/highlight-undo.nvim' { src=gh('tzachar/highlight-undo.nvim')},
Plug 'folke/which-key.nvim' { src=gh('folke/which-key.nvim')},
Plug 'folke/noice.nvim' { src=gh('folke/noice.nvim')},
{ src=gh('tpope/vim-fugitive') }, -- git client
-- tpope { src=gh('tpope/vim-sensible') }, -- 'sensible' vim defaults
Plug 'tpope/vim-fugitive' -- git client { src=gh('tpope/vim-vinegar') }, -- netrw changes
Plug 'tpope/vim-sensible' -- 'sensible' vim defaults
Plug 'tpope/vim-vinegar' -- netrw changes
vim.call('plug#end')
--[[
-- use this once nvim v12 is stable
vim.pack.add{
{ src='tpope/vim-fugitive' }, -- git client
{ src='tpope/vim-sensible' }, -- 'sensible' vim defaults
{ src='tpope/vim-vinegar' }, -- netrw changes
} }
]]