2023-09-13 22:57:25 +03:00
|
|
|
-- [[ plugins bootstrap ]]
|
|
|
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
2023-09-26 09:31:22 +03:00
|
|
|
local lazyurl = "https://github.com/folke/lazy.nvim.git"
|
|
|
|
local lazycmd = { "git", "clone", "--filter=blob:none", "--branch=stable", lazyurl, lazypath }
|
|
|
|
if not vim.loop.fs_stat(lazypath) then vim.fn.system(lazycmd) end
|
2023-09-13 22:57:25 +03:00
|
|
|
vim.opt.rtp:prepend(lazypath)
|
|
|
|
|
|
|
|
--[[ plugins list ]]
|
|
|
|
require('lazy').setup {
|
|
|
|
{'lifepillar/vim-solarized8', branch = 'neovim'},
|
2023-09-18 13:29:46 +03:00
|
|
|
{'nvim-telescope/telescope.nvim', dependencies = {'nvim-lua/plenary.nvim'}},
|
|
|
|
{'nvim-treesitter/nvim-treesitter', cmd = 'TSUpdate'},
|
|
|
|
{'w0rp/ale', cmd = 'ALEEnable', ft = {'bash', 'sh', 'zsh', 'lua', 'python'}},
|
2023-09-13 22:57:25 +03:00
|
|
|
'lewis6991/gitsigns.nvim',
|
2023-09-18 13:29:46 +03:00
|
|
|
'lifepillar/vim-cheat40',
|
2023-10-03 15:32:34 +03:00
|
|
|
'nvim-lualine/lualine.nvim',
|
2023-09-13 22:57:25 +03:00
|
|
|
'tpope/vim-rsi',
|
|
|
|
'tpope/vim-vinegar',
|
|
|
|
}
|
2022-12-26 01:31:15 +02:00
|
|
|
|
2023-08-30 20:03:29 +03:00
|
|
|
--[[ plugin configs and maps ]]
|
2023-10-03 15:32:34 +03:00
|
|
|
local ll_sep = "\u{2022}"
|
|
|
|
require('lualine').setup {
|
|
|
|
options = {
|
|
|
|
icons_enabled = false,
|
|
|
|
theme = 'solarized_light',
|
|
|
|
component_separators = { left = ll_sep, right = ll_sep},
|
|
|
|
section_separators = { left = null, right = null}
|
|
|
|
}
|
|
|
|
}
|
2023-09-11 02:24:52 +03:00
|
|
|
require('gitsigns').setup()
|
2023-09-18 13:29:46 +03:00
|
|
|
require('nvim-treesitter.configs').setup {
|
|
|
|
highlight = {
|
|
|
|
enable = true
|
|
|
|
}
|
|
|
|
}
|
2023-09-14 09:26:03 +03:00
|
|
|
map('n', '<Leader>L', '<cmd>Lazy<CR>')
|
2023-08-22 20:41:13 +03:00
|
|
|
map('n', '<Leader>?', '<cmd>Cheat40<CR>')
|
2023-03-13 15:15:53 +02:00
|
|
|
map('n', '<Leader>.', '<cmd>Telescope git_files<CR>')
|
2023-01-08 00:03:44 +02:00
|
|
|
map('n', '<Leader>,', '<cmd>Telescope buffers<CR>')
|
2022-12-26 01:31:15 +02:00
|
|
|
|
|
|
|
--[[ theme ]]
|
2023-08-25 18:15:26 +03:00
|
|
|
vim.g.solarized_extra_hi_groups = 1
|
2022-09-03 19:30:19 +03:00
|
|
|
vim.o.termguicolors = true
|
2023-08-25 18:15:26 +03:00
|
|
|
vim.o.bg = 'light'
|
2022-12-26 01:31:15 +02:00
|
|
|
|
2023-08-25 18:15:26 +03:00
|
|
|
vim.cmd [[colorscheme solarized8]]
|