|
@@ -1,7 +1,7 @@
|
|
|
local execute = vim.api.nvim_command
|
|
|
local fn = vim.fn
|
|
|
|
|
|
-local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
|
|
|
+local install_path = fn.stdpath('data')..'/site/pack/packer/opt/packer.nvim'
|
|
|
|
|
|
|
|
|
if fn.empty(fn.glob(install_path)) > 0 then
|
|
@@ -9,6 +9,8 @@ if fn.empty(fn.glob(install_path)) > 0 then
|
|
|
execute 'packadd packer.nvim'
|
|
|
end
|
|
|
|
|
|
+-- vim.cmd 'autocmd BufWritePost plugins.lua PackerCompile' -- Auto compile when there are changes in plugins.lua
|
|
|
+
|
|
|
|
|
|
return require('packer').startup(function()
|
|
|
-- Packer can manage itself as an optional plugin
|
|
@@ -33,9 +35,13 @@ return require('packer').startup(function()
|
|
|
-- Autocomplete
|
|
|
use 'hrsh7th/nvim-compe'
|
|
|
use 'hrsh7th/vim-vsnip'
|
|
|
- use 'hrsh7th/vim-vsnip-integ'
|
|
|
+ use 'honza/vim-snippets'
|
|
|
+ -- use 'cstrap/python-snippets'
|
|
|
+ -- use 'ylcnfrht/vscode-python-snippet-pack'
|
|
|
+ -- use 'xabikos/vscode-javascript'
|
|
|
+ -- use 'golang/vscode-go'
|
|
|
+ -- use 'rust-lang/vscode-rust'
|
|
|
-- use 'SirVer/ultisnips'
|
|
|
- -- use 'honza/vim-snippets'
|
|
|
-- use 'norcalli/snippets.nvim'
|
|
|
|
|
|
|
|
@@ -97,4 +103,5 @@ return require('packer').startup(function()
|
|
|
use 'voldikss/vim-floaterm'
|
|
|
use 'phaazon/hop.nvim'
|
|
|
use 'liuchengxu/vista.vim'
|
|
|
+ use { 'npxbr/glow.nvim', run = ':GlowInstall' }
|
|
|
end)
|