Replace plug w/ vim.pack()
This commit is contained in:
+23
-33
@@ -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 {
|
||||
{ src='tpope/vim-fugitive' }, -- git client
|
||||
{ src='tpope/vim-sensible' }, -- 'sensible' vim defaults
|
||||
{ src='tpope/vim-vinegar' }, -- netrw changes
|
||||
{
|
||||
src=gh('junegunn/fzf'),
|
||||
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
|
||||
}
|
||||
]]
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user