Chris 4 年之前
父节点
当前提交
f7f7c45ad9
共有 2 个文件被更改,包括 12 次插入4 次删除
  1. 2 1
      README.md
  2. 10 3
      lua/plugins.lua

+ 2 - 1
README.md

@@ -4,7 +4,7 @@ If you are looking for my old configs checkout the two snapshot branches on this
 
 ## Install in one command
 
-```
+```bash
 bash <(curl -s https://raw.githubusercontent.com/ChristianChiarulli/nvcode/master/utils/installer/install-nv-code.sh)
 ```
 
@@ -43,6 +43,7 @@ $HOME/.config/nvim/lua/nv-vscode/init.vim
 ## TODO
 
 **HIGH PRIORITY**
+- neovim lightbulb config
 - update whichkey bindings
 - snippet support
 - react commenting

+ 10 - 3
lua/plugins.lua

@@ -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)