mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
Clean the code
This commit is contained in:
parent
081763697b
commit
fae45c5dc8
@ -1,8 +1,6 @@
|
|||||||
scriptencoding utf-8
|
scriptencoding utf-8
|
||||||
|
|
||||||
" Plugin installation
|
" Plugin installation
|
||||||
let g:plugin_home = printf('%s/site/pack/packer/', stdpath('data'))
|
|
||||||
|
|
||||||
lua require 'plugins'
|
lua require 'plugins'
|
||||||
|
|
||||||
"{ Plugin settings
|
"{ Plugin settings
|
||||||
|
|||||||
@ -13,6 +13,7 @@ end
|
|||||||
local packer_repo = string.format(plug_url_format, 'wbthomason/packer.nvim')
|
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)
|
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
|
if fn.glob(packer_install_dir) == '' then
|
||||||
vim.api.nvim_echo({{'Installing packer.nvim', 'Type'}}, true, {})
|
vim.api.nvim_echo({{'Installing packer.nvim', 'Type'}}, true, {})
|
||||||
execute(install_cmd)
|
execute(install_cmd)
|
||||||
@ -179,7 +180,6 @@ require('packer').startup(
|
|||||||
|
|
||||||
-- Git command inside vim
|
-- Git command inside vim
|
||||||
use 'tpope/vim-fugitive'
|
use 'tpope/vim-fugitive'
|
||||||
use { 'TimUntersberger/neogit', requires = 'nvim-lua/plenary.nvim' }
|
|
||||||
|
|
||||||
-- Another markdown plugin
|
-- Another markdown plugin
|
||||||
use {'plasticboy/vim-markdown', ft = {'markdown', }}
|
use {'plasticboy/vim-markdown', ft = {'markdown', }}
|
||||||
@ -292,5 +292,3 @@ vim.api.nvim_exec([[
|
|||||||
autocmd BufWritePost */nvim/lua/plugins.lua source <afile> | PackerCompile
|
autocmd BufWritePost */nvim/lua/plugins.lua source <afile> | PackerCompile
|
||||||
augroup END
|
augroup END
|
||||||
]], false)
|
]], false)
|
||||||
|
|
||||||
require('neogit').setup()
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user