From fae45c5dc8c215c24edb51ded0898d782d2d9ca1 Mon Sep 17 00:00:00 2001 From: jdhao Date: Sat, 24 Jul 2021 01:18:15 +0800 Subject: Clean the code --- lua/plugins.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lua/plugins.lua') 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() -- cgit v1.2.3