diff --git a/core/plugins.vim b/core/plugins.vim index ca9a1bf..9fa4229 100644 --- a/core/plugins.vim +++ b/core/plugins.vim @@ -1,8 +1,6 @@ scriptencoding utf-8 " Plugin installation -let g:plugin_home = printf('%s/site/pack/packer/', stdpath('data')) - lua require 'plugins' "{ Plugin settings diff --git a/lua/plugins.lua b/lua/plugins.lua index 93feb9f..a4b7487 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -13,6 +13,7 @@ end local packer_repo = string.format(plug_url_format, 'wbthomason/packer.nvim') local install_cmd = string.format('10split |term git clone --depth=1 %s %s', packer_repo, packer_install_dir) +-- Auto-install packer in case it hasn't been installed. if fn.glob(packer_install_dir) == '' then vim.api.nvim_echo({{'Installing packer.nvim', 'Type'}}, true, {}) execute(install_cmd) @@ -179,7 +180,6 @@ require('packer').startup( -- Git command inside vim use 'tpope/vim-fugitive' - use { 'TimUntersberger/neogit', requires = 'nvim-lua/plenary.nvim' } -- Another markdown plugin use {'plasticboy/vim-markdown', ft = {'markdown', }} @@ -292,5 +292,3 @@ vim.api.nvim_exec([[ autocmd BufWritePost */nvim/lua/plugins.lua source | PackerCompile augroup END ]], false) - -require('neogit').setup()