add hlargs and shade

nix-components
pegasust 2022-09-12 16:20:01 -07:00
parent 6e4b9d5a71
commit e5ecfa32da
1 changed files with 258 additions and 245 deletions

View File

@ -92,20 +92,33 @@ Plug('ThePrimeagen/harpoon') -- 1-click through marked files per project
Plug('gruvbox-community/gruvbox')
Plug('nvim-lualine/lualine.nvim') -- fancy status line
Plug('lukas-reineke/indent-blankline.nvim') -- identation lines on blank lines
Plug('sunjon/shade.nvim')
-- other
Plug('nvim-treesitter/nvim-treesitter', { run = ':TSUpdate' })
Plug('saadparwaiz1/cmp_luasnip') -- snippet engine
Plug('L3MON4D3/LuaSnip') -- snippet engine
Plug('mickael-menu/zk-nvim') -- Zettelkasten
Plug('m-demare/hlargs.nvim') -- highlights arguments; great for func prog
---------
vim.call('plug#end')
-- color, highlighting, UI stuffs
vim.cmd([[ colorscheme gruvbox ]])
require('hlargs').setup()
require('shade').setup{
overlay_opacity = 60,
opacity_step = 1,
keys = {
brightness_up = '<C-Up>',
brightness_down = '<C-Down>',
toggle = '<Leader>s', -- s: sha
}
}
-- plugin keymaps
local function remap(mode, key_cmd, binded_fn, opts)
opts = opts or { remap = true }
return vim.keymap.set(mode, key_cmd, binded_fn, opts)
@ -219,7 +232,7 @@ end, { desc = '[Z]ettelkasten [G]rep' })
require('nvim-treesitter.configs').setup {
ensure_installed = {
'tsx', 'toml', 'lua', 'typescript', 'rust', 'go', 'yaml', 'json', 'php', 'css',
'python', 'prisma', 'html', "dockerfile"
'python', 'prisma', 'html', "dockerfile", "c", "cpp",
},
sync_install = false,
highlight = { enable = true },