nvim-config

Log | Files | Refs | Submodules | README

commit 331dd8a40728dd7e903334499931e931cf4cb06c
parent 4c187fb6630e91f31d595ce88c88a18387749092
Author: Thomas Vigouroux <tomvig38@gmail.com>
Date:   Sun, 11 Apr 2021 22:58:03 +0200

fix: bootstrap packer.nvim

Diffstat:
A.gitmodules | 0
Minit.vim | 5+----
Mlua/plugins.lua | 10++++++++++
3 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/.gitmodules b/.gitmodules diff --git a/init.vim b/init.vim @@ -1,15 +1,12 @@ -" Last Change: 2021 Jan 07 +" Last Change: 2021 Apr 11 let OS=substitute(system('uname -s'),"\n","","") if (OS == "Darwin") let g:python_host_prog='/bin/python' let g:python3_host_prog = '/usr/bin/python3' - set rtp+=/usr/local/opt/fzf elseif ( OS == 'Linux' ) let g:python_host_prog='/bin/python' let g:python3_host_prog = '/bin/python3' - set rtp+=/usr/share/vim/vimfiles/plugin - source /usr/share/vim/vimfiles/plugin/fzf.vim endif " I always need it diff --git a/lua/plugins.lua b/lua/plugins.lua @@ -1,4 +1,14 @@ -- vim: et +local execute = vim.api.nvim_command +local fn = vim.fn + +local install_path = fn.stdpath('data')..'/site/pack/packer/opt/packer.nvim' + +if fn.empty(fn.glob(install_path)) > 0 then + execute('!git clone https://github.com/wbthomason/packer.nvim '..install_path) + execute 'packadd packer.nvim' +end + return require"packer".startup(function(use) local function localuse(spec)