1
0
Fork 0

vim and nvim config refactor / update

This commit is contained in:
Von Random 2022-12-25 03:36:59 +02:00
parent a5827a87a2
commit aeb129a621
3 changed files with 81 additions and 121 deletions

View file

@ -1,36 +1,40 @@
require('paq') {
'savq/paq-nvim',
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
'mhinz/vim-signify',
'tpope/vim-commentary',
'tpope/vim-fugitive',
'tpope/vim-rsi',
'tpope/vim-vinegar',
'hoob3rt/lualine.nvim',
'w0rp/ale',
local packer_bootstrap = ensure_packer()
'lifepillar/vim-gruvbox8',
'lifepillar/vim-solarized8',
'NLKNguyen/papercolor-theme'
}
require('packer').startup(function(use)
use 'wbthomason/packer.nvim'
use 'lifepillar/vim-gruvbox8'
require('lualine').setup{
options = {
icons_enabled = false,
section_separators = { left = '', right = ''},
component_separators = { left = '', right = ''}
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'
}
}
end)
vim.g.vimwiki_list = {{path='$HOME/vimwiki/', syntax='markdown', ext='.md'}}
vim.g.PaperColor_Theme_Options = {
theme = {
["default.dark"] = { allow_bold = 1, allow_italic = 1 },
["default.light"] = { allow_bold = 1, allow_italic = 1 }
}
}
if packer_bootstrap then
require('packer').sync()
return
end
require('lualine').setup { options = { icons_enabled = false } }
vim.o.bg = 'dark'
vim.o.termguicolors = true
vim.g.gruvbox_transp_bg = 1
vim.g.gruvbox_plugin_hi_groups = 1
vim.g.gruvbox_filetype_hi_groups = 1
vim.cmd('colorscheme gruvbox8')