dotvim/lua/config/plugins.lua

91 lines
2.5 KiB
Lua
Raw Normal View History

2023-02-20 22:29:34 +00:00
-- argonaut.nvim
require('argonaut').setup()
vim.keymap.set('n', '<leader>a', vim.cmd.ArgonautReflow)
2022-12-23 03:05:51 +00:00
-- comment.nvim
require('Comment').setup()
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)
end
2022-10-22 16:53:29 +00:00
2023-01-03 04:41:30 +00:00
-- guid.nvim
require('guid').setup()
2022-12-22 23:51:53 +00:00
-- lualine.nvim
require('lualine').setup {
options = {
always_divide_middle = true,
component_separators = {left = '', right = ''},
disabled_filetypes = {statusline = {}, winbar = {}},
globalstatus = false,
2023-01-18 01:45:44 +00:00
icons_enabled = false,
2022-12-22 23:51:53 +00:00
ignore_focus = {},
refresh = {statusline = 1000, tabline = 1000, winbar = 1000},
section_separators = {left = '', right = ''},
theme = 'auto',
},
sections = {
lualine_a = {'mode'},
lualine_b = {'branch', 'diff', 'diagnostics'},
lualine_c = {'filename'},
lualine_x = {'encoding', 'fileformat', 'filetype'},
lualine_y = {'progress'},
lualine_z = {'location'}
},
inactive_sections = {
lualine_a = {},
lualine_b = {},
lualine_c = {'filename'},
lualine_x = {'location'},
lualine_y = {},
lualine_z = {}
},
tabline = {
lualine_a = {'buffers'},
lualine_b = {},
lualine_c = {},
lualine_x = {},
lualine_y = {},
lualine_z = {}
},
winbar = {},
inactive_winbar = {},
extensions = {}
}
2022-10-22 05:45:38 +00:00
2023-01-26 03:58:14 +00:00
-- revolver.nvim
2023-01-28 06:47:53 +00:00
require('revolver').setup({'.c', '.cpp', '.h', '.hpp', '.inl'})
2023-01-26 03:58:14 +00:00
vim.keymap.set('n', 'gfs', vim.cmd.Revolver)
2022-10-22 05:45:38 +00:00
-- vim-better-whitespace
2022-12-22 23:51:53 +00:00
vim.api.nvim_set_hl(0, 'ExtraWhitespace', {link = 'Search'})
2022-10-22 05:45:38 +00:00
-- 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