diff --git a/nvim/init.lua b/nvim/init.lua index a1fa1f3..2e537af 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -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' +vim.pack.add { + { + src=gh('junegunn/fzf'), + build = function() + vim.fn.system("./install --all") + end + }, + { src=gh('junegunn/fzf.vim')}, - Plug 'numToStr/Comment.nvim' - Plug 'andymass/vim-matchup' - Plug 'windwp/nvim-autopairs' + { src=gh('numToStr/Comment.nvim')}, + { src=gh('andymass/vim-matchup')}, + { 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' - 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('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 } -]] - - - -