dotvim/lua/plugins.lua

61 lines
1.9 KiB
Lua
Raw Normal View History

2022-10-22 16:40:06 +00:00
-- fzf.vim
2022-11-16 04:20:48 +00:00
if vim.fn.executable('fzf') then
vim.g['$FZF_DEFAULT_COMMAND'] = 'ag --hidden --ignore .git -f -g "" 2> /dev/null'
vim.keymap.set('n', '<leader>fg', vim.cmd.GFiles)
vim.keymap.set('n', '<leader>fh', vim.cmd.History)
vim.keymap.set('n', '<leader>fb', vim.cmd.Buffers)
vim.keymap.set('n', '<leader>fl', vim.cmd.Lines)
vim.g.fzf_colors = {
['bg'] = {'bg', 'Normal'},
['bg+'] = {'bg', 'CursorLine', 'CursorColumn'},
['border'] = {'fg', 'Ignore'},
['fg'] = {'fg', 'Normal'},
['fg+'] = {'fg', 'CursorLine', 'CursorColumn', 'Normal'},
['header'] = {'fg', 'Comment'},
['hl'] = {'fg', 'Comment'},
['hl+'] = {'fg', 'Statement'},
['info'] = {'fg', 'PreProc'},
['marker'] = {'fg', 'Keyword'},
['pointer'] = {'fg', 'Exception'},
['prompt'] = {'fg', 'Conditional'},
['spinner'] = {'fg', 'Label'},
}
end
2022-10-22 16:53:29 +00:00
2022-10-22 05:45:38 +00:00
-- hflip.nvim
vim.keymap.set('n', 'gfs', vim.cmd.HFlip)
-- vim-airline
vim.g['airline#extensions#tabline#enabled'] = 1
vim.g['airline_symbols_ascii'] = 1
-- vim-argwrap
vim.keymap.set('n', '<leader>a', vim.cmd.ArgWrap)
-- vim-better-whitespace
vim.api.nvim_set_hl(0, 'ExtraWhitespace', { bg = '#6c71c4' })
-- vim-dirvish
vim.g.dirvish_mode = ':sort ,^.*[\\/],'
-- vim-easy-align
vim.g.easy_align_ignore_groups = {}
vim.keymap.set('n', 'ga', '<plug>(EasyAlign)')
vim.keymap.set('v', '<cr>', '<plug>(EasyAlign)')
-- vim-go
vim.g.go_diagnostics_enabled = 0
vim.g.go_imports_autosave = 0
vim.g.go_metalinter_enabled = {}
vim.g.go_null_module_warning = 0
vim.g.go_version_warning = 0
-- vim-interestingwords
2022-10-22 16:53:29 +00:00
vim.g.interestingWordsGUIColors = {'#8ccbea', '#a4e57e', '#ffdb72', '#ff7272', '#ffb3ff', '#9999ff'}
vim.g.interestingWordsTermColors = {'154', '121', '211', '137', '214', '222'}
2022-10-22 05:45:38 +00:00
-- vim-polyglot
vim.g.rustfmt_autosave = 1