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