mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-07-24 20:55:00 +02:00
update
This commit is contained in:
parent
be6c6ca92f
commit
7f8fb0135a
1 changed files with 2 additions and 2 deletions
|
@ -1,17 +1,17 @@
|
||||||
|
|
||||||
vim.cmd [[packadd packer.nvim]]
|
|
||||||
|
|
||||||
local execute = vim.api.nvim_command
|
local execute = vim.api.nvim_command
|
||||||
local fn = vim.fn
|
local fn = vim.fn
|
||||||
|
|
||||||
local install_path = fn.stdpath('data')..'/site/pack/packer/opt/packer.nvim'
|
local install_path = fn.stdpath('data')..'/site/pack/packer/opt/packer.nvim'
|
||||||
|
|
||||||
|
|
||||||
if fn.empty(fn.glob(install_path)) > 0 then
|
if fn.empty(fn.glob(install_path)) > 0 then
|
||||||
execute('!git clone https://github.com/wbthomason/packer.nvim '..install_path)
|
execute('!git clone https://github.com/wbthomason/packer.nvim '..install_path)
|
||||||
execute 'packadd packer.nvim'
|
execute 'packadd packer.nvim'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
vim.cmd [[packadd packer.nvim]]
|
||||||
|
|
||||||
-- vim.cmd 'autocmd BufWritePost plugins.lua PackerCompile' -- Auto compile when there are changes in plugins.lua
|
-- vim.cmd 'autocmd BufWritePost plugins.lua PackerCompile' -- Auto compile when there are changes in plugins.lua
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue