diff options
| author | jdhao <jdhao@hotmail.com> | 2021-07-24 01:18:15 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2021-07-24 01:18:15 +0800 |
| commit | fae45c5dc8c215c24edb51ded0898d782d2d9ca1 (patch) | |
| tree | fe98912ce28e5fc951510c527566e34b98694db2 | |
| parent | 081763697bf939ed2de9405170ca564a6fa1cd5e (diff) | |
Clean the code
| -rw-r--r-- | core/plugins.vim | 2 | ||||
| -rw-r--r-- | lua/plugins.lua | 4 |
2 files changed, 1 insertions, 5 deletions
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 <afile> | PackerCompile augroup END ]], false) - -require('neogit').setup() |
