vim: minor tweak of how packer
is loaded
This commit is contained in:
parent
807d27f2d9
commit
9a83027d39
1 changed files with 3 additions and 3 deletions
|
@ -1,11 +1,11 @@
|
||||||
local packer = function()
|
local packer = (function()
|
||||||
local path = vim.fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim'
|
local path = vim.fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim'
|
||||||
if vim.fn.empty(vim.fn.glob(path)) > 0 then
|
if vim.fn.empty(vim.fn.glob(path)) > 0 then
|
||||||
local url = 'https://github.com/wbthomason/packer.nvim'
|
local url = 'https://github.com/wbthomason/packer.nvim'
|
||||||
vim.fn.system({'git', 'clone', '--depth', '1', url, path})
|
vim.fn.system({'git', 'clone', '--depth', '1', url, path})
|
||||||
end
|
end
|
||||||
return require('packer')
|
return require('packer')
|
||||||
end
|
end)()
|
||||||
|
|
||||||
vim.g.better_whitespace_filetypes_blacklist = {
|
vim.g.better_whitespace_filetypes_blacklist = {
|
||||||
'diff',
|
'diff',
|
||||||
|
@ -20,7 +20,7 @@ vim.g.vim_json_syntax_conceal = 0 -- Disable quote concealling.
|
||||||
vim.g.VM_leader = '\\'
|
vim.g.VM_leader = '\\'
|
||||||
vim.g.VM_silent_exit = 1
|
vim.g.VM_silent_exit = 1
|
||||||
|
|
||||||
return packer().startup(function(use)
|
packer.startup(function(use)
|
||||||
use 'wbthomason/packer.nvim'
|
use 'wbthomason/packer.nvim'
|
||||||
use 'nvim-lua/plenary.nvim'
|
use 'nvim-lua/plenary.nvim'
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue