Fix packer.nvim

master
Ian Mancini 3 years ago
parent 7ce052b1db
commit 7ecd402ea2

@ -1,17 +1,13 @@
vim.g.python3_host_prog = '/usr/bin/python'
vim.g.mapleader = ' '
local fn = vim.fn
local execute = vim.api.nvim_command
-- Setup packer
local install_path = fn.stdpath('data')..'/site/pack/packer/opt/packer.nvim'
local fn = vim.fn
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
if fn.empty(fn.glob(install_path)) > 0 then
execute('!git clone https://github.com/wbthomason/packer.nvim '..install_path)
fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
vim.cmd 'packadd packer.nvim'
end
vim.cmd [[packadd packer.nvim]]
vim.cmd 'autocmd BufWritePost plugins/init.lua PackerCompile' -- Auto compile when there are changes in plugins.lua
-- Source settings
require('plugins')

@ -1,7 +1,7 @@
---@diagnostic disable: undefined-global
return require('packer').startup(function()
use {'wbthomason/packer.nvim', opt = true}
use 'wbthomason/packer.nvim'
use {'ibhagwan/fzf-lua',
requires = {

Loading…
Cancel
Save