1
0
Fork 0

nvim: some nicer code

This commit is contained in:
Von Random 2023-01-18 19:18:09 +02:00
parent d65834fbc1
commit 23c1be3e16
2 changed files with 21 additions and 14 deletions

View file

@ -1,3 +1,6 @@
local packer_init = {}
packer_init.init = function(plugins)
local ensure_packer = function()
local install_path = vim.fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
@ -15,3 +18,6 @@ if packer_bootstrap then
return true
end
return false
end
return packer_init

View file

@ -1,9 +1,10 @@
-- [[ plugins list ]]
plugins = function(use)
local plugins = function(use)
use 'wbthomason/packer.nvim'
use 'lifepillar/vim-gruvbox8'
use 'hoob3rt/lualine.nvim'
use 'hashivim/vim-terraform'
use 'mhinz/vim-signify'
use 'tpope/vim-fugitive'
use 'tpope/vim-rsi'
@ -18,7 +19,7 @@ plugins = function(use)
end
--[[ init packer if missing ]]
if require('packer_init') then return end
if require('packer_init').init(plugins) then return end
--[[ plugins config ]]
require('lualine').setup()