From 11059147e55cfb8c30d69cc62eb39a5b50f9a034 Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 8 Aug 2022 20:23:44 +0200 Subject: [PATCH] nvim: move luasnip dep to lsp declaration --- .config/nvim/lua/lsp.lua | 1 + .config/nvim/lua/plugins.lua | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) 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!