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"
|
2024-02-02 12:46:24 +02:00
|
|
|
local lazycmd = {"git", "clone", "--filter=blob:none", "--branch=stable", lazyurl, lazypath}
|
2023-09-26 09:31:22 +03:00
|
|
|
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 {
|
2024-01-05 17:34:44 +02:00
|
|
|
{'kdheepak/lazygit.nvim', dependencies = {'nvim-lua/plenary.nvim'}},
|
2024-04-23 15:37:03 +03:00
|
|
|
{'ellisonleao/gruvbox.nvim', priority = 1000, config = true},
|
|
|
|
{'nvim-orgmode/orgmode', event = 'VeryLazy', ft = {'org'}},
|
2023-09-18 13:29:46 +03:00
|
|
|
{'nvim-telescope/telescope.nvim', dependencies = {'nvim-lua/plenary.nvim'}},
|
|
|
|
{'nvim-treesitter/nvim-treesitter', cmd = 'TSUpdate'},
|
2023-10-06 14:54:59 +03:00
|
|
|
{'w0rp/ale', cmd = 'ALEEnable', ft = {'bash', 'go', 'lua', 'python', 'sh', 'zsh'}},
|
2023-09-13 22:57:25 +03:00
|
|
|
'lewis6991/gitsigns.nvim',
|
2023-09-18 13:29:46 +03:00
|
|
|
'lifepillar/vim-cheat40',
|
2024-02-02 12:46:24 +02: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-06 00:18:21 +03:00
|
|
|
require('gitsigns').setup()
|
2024-04-23 15:37:03 +03:00
|
|
|
require('gruvbox').setup {
|
2024-05-07 00:32:27 +03:00
|
|
|
terminal_colors = true
|
2024-04-23 15:37:03 +03:00
|
|
|
}
|
|
|
|
require('orgmode').setup {
|
|
|
|
org_agenda_files = '~/orgfiles/**/*',
|
|
|
|
org_default_notes_file = '~/orgfiles/refile.org'
|
|
|
|
}
|
2023-10-06 14:50:48 +03:00
|
|
|
require('nvim-treesitter.configs').setup {
|
|
|
|
highlight = {
|
|
|
|
enable = true
|
|
|
|
}
|
|
|
|
}
|
2024-02-02 12:46:24 +02:00
|
|
|
require('lualine').setup {
|
|
|
|
options = {
|
|
|
|
icons_enabled = false,
|
|
|
|
component_separators = { left = "\u{2022}", right = "\u{2022}"},
|
|
|
|
section_separators = { left = nil, right = nil},
|
|
|
|
}
|
|
|
|
}
|
2023-10-06 00:18:21 +03:00
|
|
|
|
2024-01-05 17:34:44 +02:00
|
|
|
map('n', '<Leader>g', '<cmd>LazyGit<CR>')
|
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>')
|
2023-10-16 19:34:19 +03:00
|
|
|
map('n', '<Leader>T', '<cmd>colorscheme solarized8|set bg=light<CR>')
|
|
|
|
map('n', '<Leader>t', '<cmd>colorscheme gruvbox8|set bg=dark<CR>')
|
2022-12-26 01:31:15 +02:00
|
|
|
|
|
|
|
--[[ theme ]]
|
2023-10-16 19:34:19 +03:00
|
|
|
vim.o.termguicolors = true
|
2024-03-28 16:45:27 +02:00
|
|
|
vim.o.bg = 'dark'
|
2022-12-26 01:31:15 +02:00
|
|
|
|
2024-04-23 15:37:03 +03:00
|
|
|
vim.cmd [[colorscheme gruvbox]]
|