1
0

Replace plug w/ vim.pack()

This commit is contained in:
2026-03-30 02:01:51 -04:00
parent 0a2e95ebfc
commit d6f050f812
+23 -33
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')
Plug('junegunn/fzf', { ['do'] = function() vim.call('fzf#install') end })
Plug 'junegunn/fzf.vim'
Plug 'numToStr/Comment.nvim'
Plug 'andymass/vim-matchup'
Plug 'windwp/nvim-autopairs'
Plug 'mbbill/undotree'
Plug 'max397574/better-escape.nvim'
Plug 'tzachar/highlight-undo.nvim'
Plug 'folke/which-key.nvim'
Plug 'folke/noice.nvim'
-- tpope
Plug 'tpope/vim-fugitive' -- git client
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 { vim.pack.add {
{ src='tpope/vim-fugitive' }, -- git client {
{ src='tpope/vim-sensible' }, -- 'sensible' vim defaults src=gh('junegunn/fzf'),
{ src='tpope/vim-vinegar' }, -- netrw changes build = function()
vim.fn.system("./install --all")
end
},
{ src=gh('junegunn/fzf.vim')},
{ src=gh('numToStr/Comment.nvim')},
{ src=gh('andymass/vim-matchup')},
{ src=gh('windwp/nvim-autopairs')},
{ src=gh('mbbill/undotree')},
{ src=gh('max397574/better-escape.nvim')},
{ src=gh('tzachar/highlight-undo.nvim')},
{ src=gh('folke/which-key.nvim')},
{ src=gh('folke/noice.nvim')},
{ src=gh('tpope/vim-fugitive') }, -- git client
{ src=gh('tpope/vim-sensible') }, -- 'sensible' vim defaults
{ src=gh('tpope/vim-vinegar') }, -- netrw changes
} }
]]