aboutsummaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2021-07-24 01:18:15 +0800
committerjdhao <jdhao@hotmail.com>2021-07-24 01:18:15 +0800
commitfae45c5dc8c215c24edb51ded0898d782d2d9ca1 (patch)
treefe98912ce28e5fc951510c527566e34b98694db2 /lua
parent081763697bf939ed2de9405170ca564a6fa1cd5e (diff)
Clean the code
Diffstat (limited to 'lua')
-rw-r--r--lua/plugins.lua4
1 files changed, 1 insertions, 3 deletions
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 <afile> | PackerCompile
augroup END
]], false)
-
-require('neogit').setup()