nvim: move luasnip dep to lsp declaration

This commit is contained in:
tastytea 2022-08-08 20:23:44 +02:00
parent aea3d88329
commit 11059147e5
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
2 changed files with 3 additions and 3 deletions

View File

@ -3,6 +3,7 @@ require('keymaps')
use {
'https://github.com/neovim/nvim-lspconfig',
requires = 'https://github.com/L3MON4D3/LuaSnip',
config = function()
map('n', '<space>e', vim.diagnostic.open_float)
map('n', '<f5>', vim.diagnostic.goto_prev)

View File

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