nvim: replace use with packer.use
This commit is contained in:
parent
11059147e5
commit
479570112e
|
@ -1,12 +1,12 @@
|
||||||
require('plugins')
|
require('plugins')
|
||||||
require('lsp')
|
require('lsp')
|
||||||
|
|
||||||
use 'https://github.com/hrsh7th/cmp-nvim-lsp'
|
packer.use 'https://github.com/hrsh7th/cmp-nvim-lsp'
|
||||||
use 'https://github.com/hrsh7th/cmp-buffer'
|
packer.use 'https://github.com/hrsh7th/cmp-buffer'
|
||||||
use 'https://github.com/hrsh7th/cmp-path'
|
packer.use 'https://github.com/hrsh7th/cmp-path'
|
||||||
use 'https://github.com/hrsh7th/cmp-cmdline'
|
packer.use 'https://github.com/hrsh7th/cmp-cmdline'
|
||||||
use 'https://github.com/hrsh7th/cmp-nvim-lua'
|
packer.use 'https://github.com/hrsh7th/cmp-nvim-lua'
|
||||||
use {
|
packer.use {
|
||||||
'https://github.com/hrsh7th/nvim-cmp',
|
'https://github.com/hrsh7th/nvim-cmp',
|
||||||
config = function()
|
config = function()
|
||||||
local cmp = require'cmp'
|
local cmp = require'cmp'
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
require('plugins')
|
require('plugins')
|
||||||
|
|
||||||
-- org
|
-- org
|
||||||
use {
|
packer.use {
|
||||||
'https://github.com/nvim-orgmode/orgmode',
|
'https://github.com/nvim-orgmode/orgmode',
|
||||||
config = function()
|
config = function()
|
||||||
require('orgmode').setup{}
|
require('orgmode').setup{}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
require('plugins')
|
require('plugins')
|
||||||
require('keymaps')
|
require('keymaps')
|
||||||
|
|
||||||
use {
|
packer.use {
|
||||||
'https://github.com/neovim/nvim-lspconfig',
|
'https://github.com/neovim/nvim-lspconfig',
|
||||||
requires = 'https://github.com/L3MON4D3/LuaSnip',
|
requires = 'https://github.com/L3MON4D3/LuaSnip',
|
||||||
config = function()
|
config = function()
|
||||||
|
|
|
@ -7,12 +7,11 @@ end
|
||||||
|
|
||||||
packer = require('packer')
|
packer = require('packer')
|
||||||
packer.init()
|
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
|
-- common dependencies which require setup
|
||||||
use {
|
packer.use {
|
||||||
'https://github.com/nvim-treesitter/nvim-treesitter',
|
'https://github.com/nvim-treesitter/nvim-treesitter',
|
||||||
run = function()
|
run = function()
|
||||||
require('nvim-treesitter.install').update({ with_sync = true })
|
require('nvim-treesitter.install').update({ with_sync = true })
|
||||||
|
|
Loading…
Reference in New Issue
Block a user