nvim: replace use with packer.use

This commit is contained in:
tastytea 2022-08-08 20:27:58 +02:00
parent 11059147e5
commit 479570112e
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
4 changed files with 10 additions and 11 deletions

View File

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

View File

@ -1,7 +1,7 @@
require('plugins')
-- org
use {
packer.use {
'https://github.com/nvim-orgmode/orgmode',
config = function()
require('orgmode').setup{}

View File

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

View File

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