From 479570112eb93fae87a5eacad31064e1d9933e26 Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 8 Aug 2022 20:27:58 +0200 Subject: [PATCH] nvim: replace use with packer.use --- .config/nvim/lua/completion.lua | 12 ++++++------ .config/nvim/lua/fileformats.lua | 2 +- .config/nvim/lua/lsp.lua | 2 +- .config/nvim/lua/plugins.lua | 5 ++--- 4 files changed, 10 insertions(+), 11 deletions(-) diff --git a/.config/nvim/lua/completion.lua b/.config/nvim/lua/completion.lua index 499ec72..3b9d899 100644 --- a/.config/nvim/lua/completion.lua +++ b/.config/nvim/lua/completion.lua @@ -1,12 +1,12 @@ require('plugins') require('lsp') -use 'https://github.com/hrsh7th/cmp-nvim-lsp' -use 'https://github.com/hrsh7th/cmp-buffer' -use 'https://github.com/hrsh7th/cmp-path' -use 'https://github.com/hrsh7th/cmp-cmdline' -use 'https://github.com/hrsh7th/cmp-nvim-lua' -use { +packer.use 'https://github.com/hrsh7th/cmp-nvim-lsp' +packer.use 'https://github.com/hrsh7th/cmp-buffer' +packer.use 'https://github.com/hrsh7th/cmp-path' +packer.use 'https://github.com/hrsh7th/cmp-cmdline' +packer.use 'https://github.com/hrsh7th/cmp-nvim-lua' +packer.use { 'https://github.com/hrsh7th/nvim-cmp', config = function() local cmp = require'cmp' diff --git a/.config/nvim/lua/fileformats.lua b/.config/nvim/lua/fileformats.lua index 24550e2..43fa0a5 100644 --- a/.config/nvim/lua/fileformats.lua +++ b/.config/nvim/lua/fileformats.lua @@ -1,7 +1,7 @@ require('plugins') -- org -use { +packer.use { 'https://github.com/nvim-orgmode/orgmode', config = function() require('orgmode').setup{} diff --git a/.config/nvim/lua/lsp.lua b/.config/nvim/lua/lsp.lua index 3a106c2..6602748 100644 --- a/.config/nvim/lua/lsp.lua +++ b/.config/nvim/lua/lsp.lua @@ -1,7 +1,7 @@ require('plugins') require('keymaps') -use { +packer.use { 'https://github.com/neovim/nvim-lspconfig', requires = 'https://github.com/L3MON4D3/LuaSnip', config = function() diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua index ed378c6..cd133ec 100644 --- a/.config/nvim/lua/plugins.lua +++ b/.config/nvim/lua/plugins.lua @@ -7,12 +7,11 @@ end packer = require('packer') packer.init() -use = packer.use -use 'https://github.com/wbthomason/packer.nvim' +packer.use 'https://github.com/wbthomason/packer.nvim' -- common dependencies which require setup -use { +packer.use { 'https://github.com/nvim-treesitter/nvim-treesitter', run = function() require('nvim-treesitter.install').update({ with_sync = true })