2022-12-26 01:31:15 +02:00
|
|
|
-- [[ plugins list ]]
|
2023-01-23 11:44:56 +02:00
|
|
|
local function plugins(use)
|
2022-12-25 03:36:59 +02:00
|
|
|
use 'wbthomason/packer.nvim'
|
2022-09-03 19:30:19 +03:00
|
|
|
|
2022-12-26 01:31:15 +02:00
|
|
|
use 'lifepillar/vim-gruvbox8'
|
|
|
|
use 'hoob3rt/lualine.nvim'
|
2023-01-18 19:18:09 +02:00
|
|
|
use 'hashivim/vim-terraform'
|
2022-12-25 03:36:59 +02:00
|
|
|
use 'mhinz/vim-signify'
|
|
|
|
use 'tpope/vim-rsi'
|
|
|
|
use 'tpope/vim-vinegar'
|
2023-02-05 02:59:07 +02:00
|
|
|
use {
|
|
|
|
'nvim-telescope/telescope.nvim',
|
|
|
|
requires = 'nvim-lua/plenary.nvim'
|
|
|
|
}
|
|
|
|
use {
|
|
|
|
'TimUntersberger/neogit',
|
|
|
|
requires = 'nvim-lua/plenary.nvim'
|
|
|
|
}
|
2022-12-25 03:36:59 +02:00
|
|
|
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
|
|
|
|
2023-01-23 11:44:56 +02:00
|
|
|
--[[ init plugins and install packer if missing ]]
|
2023-01-18 19:18:09 +02:00
|
|
|
if require('packer_init').init(plugins) then return end
|
2022-12-26 01:31:15 +02:00
|
|
|
|
|
|
|
--[[ plugins config ]]
|
2023-02-05 02:59:07 +02:00
|
|
|
require('neogit').setup{}
|
2023-01-21 03:43:23 +02:00
|
|
|
require('lualine').setup{
|
|
|
|
options = {
|
|
|
|
icons_enabled = false,
|
2023-01-25 11:18:27 +02:00
|
|
|
component_separators = { left = '\u{2022}', right = '\u{2022}' }
|
2023-01-21 03:43:23 +02:00
|
|
|
}
|
|
|
|
}
|
2022-12-26 01:31:15 +02:00
|
|
|
|
2023-02-05 02:59:07 +02:00
|
|
|
--[[ neogit maps ]]
|
|
|
|
map('n', '<Leader>g', '<cmd>Neogit<CR>')
|
|
|
|
|
2022-12-26 01:31:15 +02:00
|
|
|
--[[ telescope maps ]]
|
2023-01-08 00:03:44 +02:00
|
|
|
map('n', '<Leader>.', '<cmd>Telescope find_files<CR>')
|
|
|
|
map('n', '<Leader>,', '<cmd>Telescope buffers<CR>')
|
2022-12-26 01:31:15 +02:00
|
|
|
|
|
|
|
--[[ theme ]]
|
2022-09-03 19:30:19 +03:00
|
|
|
vim.o.bg = 'dark'
|
|
|
|
vim.o.termguicolors = true
|
2022-12-26 01:31:15 +02:00
|
|
|
|
2022-12-25 03:36:59 +02:00
|
|
|
vim.g.gruvbox_plugin_hi_groups = 1
|
2022-09-03 19:30:19 +03:00
|
|
|
vim.g.gruvbox_filetype_hi_groups = 1
|
2022-12-26 01:31:15 +02:00
|
|
|
|
|
|
|
vim.cmd [[colorscheme gruvbox8]]
|