diff --git a/.config/nvim/lua/lsp.lua b/.config/nvim/lua/lsp.lua index 1fbe2e0..3a106c2 100644 --- a/.config/nvim/lua/lsp.lua +++ b/.config/nvim/lua/lsp.lua @@ -3,6 +3,7 @@ require('keymaps') use { 'https://github.com/neovim/nvim-lspconfig', + requires = 'https://github.com/L3MON4D3/LuaSnip', config = function() map('n', 'e', vim.diagnostic.open_float) map('n', '', vim.diagnostic.goto_prev) diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua index b5c1687..ed378c6 100644 --- a/.config/nvim/lua/plugins.lua +++ b/.config/nvim/lua/plugins.lua @@ -11,16 +11,15 @@ use = packer.use use 'https://github.com/wbthomason/packer.nvim' --- common dependencies +-- common dependencies which require setup use { 'https://github.com/nvim-treesitter/nvim-treesitter', run = function() require('nvim-treesitter.install').update({ with_sync = true }) end } -use 'https://github.com/L3MON4D3/LuaSnip' --- compile and install new plugins when this is save in this dir are written +-- compile and install new plugins when lua files in this dir are written vim.cmd([[ augroup packer_user_config autocmd!