2022-12-25 03:36:59 +02:00
|
|
|
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
|
|
|
|
vim.fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
|
|
|
|
vim.cmd [[packadd packer.nvim]]
|
|
|
|
return true
|
|
|
|
end
|
|
|
|
return false
|
|
|
|
end
|
2022-09-03 19:30:19 +03:00
|
|
|
|
2022-12-25 03:36:59 +02:00
|
|
|
local packer_bootstrap = ensure_packer()
|
2022-09-03 19:30:19 +03:00
|
|
|
|
2022-12-25 03:36:59 +02:00
|
|
|
require('packer').startup(function(use)
|
|
|
|
use 'wbthomason/packer.nvim'
|
|
|
|
use 'lifepillar/vim-gruvbox8'
|
2022-09-03 19:30:19 +03:00
|
|
|
|
2022-12-25 03:36:59 +02:00
|
|
|
use 'mhinz/vim-signify'
|
|
|
|
use 'tpope/vim-fugitive'
|
|
|
|
use 'tpope/vim-rsi'
|
|
|
|
use 'tpope/vim-vinegar'
|
|
|
|
use 'hoob3rt/lualine.nvim'
|
|
|
|
use {
|
|
|
|
'w0rp/ale',
|
|
|
|
ft = { 'sh', 'zsh', 'lua', 'python' },
|
|
|
|
cmd = 'ALEEnable'
|
2022-09-03 19:30:19 +03:00
|
|
|
}
|
2022-12-25 03:36:59 +02:00
|
|
|
end)
|
2022-09-03 19:30:19 +03:00
|
|
|
|
2022-12-25 03:36:59 +02:00
|
|
|
if packer_bootstrap then
|
|
|
|
require('packer').sync()
|
|
|
|
return
|
|
|
|
end
|
2022-09-03 19:30:19 +03:00
|
|
|
|
2022-12-25 03:36:59 +02:00
|
|
|
require('lualine').setup { options = { icons_enabled = false } }
|
2022-09-03 19:30:19 +03:00
|
|
|
vim.o.bg = 'dark'
|
|
|
|
vim.o.termguicolors = true
|
2022-12-25 03:36:59 +02:00
|
|
|
vim.g.gruvbox_transp_bg = 1
|
|
|
|
vim.g.gruvbox_plugin_hi_groups = 1
|
2022-09-03 19:30:19 +03:00
|
|
|
vim.g.gruvbox_filetype_hi_groups = 1
|
|
|
|
vim.cmd('colorscheme gruvbox8')
|