summaryrefslogtreecommitdiff
path: root/cli/.config/nvim/lua/plugins.lua
blob: 873253702dac16b623c2ce12707292863c788310 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
-- [[ plugins bootstrap ]]
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
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
vim.opt.rtp:prepend(lazypath)

--[[ plugins list ]]
require('lazy').setup {
    {'kdheepak/lazygit.nvim', dependencies = {'nvim-lua/plenary.nvim'}},
    {'ellisonleao/gruvbox.nvim', priority = 1000, config = true},
    {'nvim-orgmode/orgmode', event = 'VeryLazy', ft = {'org'}},
    {'nvim-telescope/telescope.nvim', dependencies = {'nvim-lua/plenary.nvim'}},
    {'nvim-treesitter/nvim-treesitter', cmd = 'TSUpdate'},
    {'w0rp/ale', cmd = 'ALEEnable', ft = {'bash', 'go', 'lua', 'python', 'sh', 'zsh'}},
    'lewis6991/gitsigns.nvim',
    'lifepillar/vim-cheat40',
    'nvim-lualine/lualine.nvim',
    'tpope/vim-rsi',
    'tpope/vim-vinegar',
}

--[[ plugin configs and maps ]]
require('gitsigns').setup()
require('gruvbox').setup {
    terminal_colors = false
}
require('orgmode').setup {
    org_agenda_files = '~/orgfiles/**/*',
    org_default_notes_file = '~/orgfiles/refile.org'
}
require('nvim-treesitter.configs').setup {
    highlight = {
        enable = true
    }
}
require('lualine').setup {
  options = {
    icons_enabled = false,
    component_separators = { left = "\u{2022}", right = "\u{2022}"},
    section_separators = { left = nil, right = nil},
  }
}

map('n', '<Leader>g', '<cmd>LazyGit<CR>')
map('n', '<Leader>L', '<cmd>Lazy<CR>')
map('n', '<Leader>?', '<cmd>Cheat40<CR>')
map('n', '<Leader>.', '<cmd>Telescope git_files<CR>')
map('n', '<Leader>,', '<cmd>Telescope buffers<CR>')
map('n', '<Leader>T', '<cmd>colorscheme solarized8|set bg=light<CR>')
map('n', '<Leader>t', '<cmd>colorscheme gruvbox8|set bg=dark<CR>')

--[[ theme ]]
vim.o.termguicolors = true
vim.o.bg = 'dark'

vim.cmd [[colorscheme gruvbox]]