61 lines
1.8 KiB
Lua
61 lines
1.8 KiB
Lua
-- telescope.nvim
|
|
local telescope = require('telescope')
|
|
if telescope then
|
|
local telescope_builtin = require('telescope.builtin')
|
|
if telescope_builtin then
|
|
vim.keymap.set('n', '<space>fb', telescope_builtin.buffers, {})
|
|
vim.keymap.set('n', '<space>fg', telescope_builtin.git_files, {})
|
|
vim.keymap.set('n', '<space>fh', telescope_builtin.oldfiles, {})
|
|
vim.keymap.set('n', '<space>fr', telescope_builtin.reloader, {})
|
|
vim.keymap.set('n', '<space>fs', telescope_builtin.spell_suggest, {})
|
|
end
|
|
|
|
local telescope_actions = require('telescope.actions')
|
|
telescope.setup {
|
|
defaults = {
|
|
mappings = {
|
|
i = {
|
|
['<c-j>'] = telescope_actions.move_selection_next,
|
|
['<c-k>'] = telescope_actions.move_selection_previous,
|
|
['<esc>'] = telescope_actions.close,
|
|
},
|
|
},
|
|
}
|
|
}
|
|
end
|
|
|
|
-- 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
|
|
vim.g.interestingWordsGUIColors = { '#8ccbea', '#a4e57e', '#ffdb72', '#ff7272', '#ffb3ff', '#9999ff' }
|
|
vim.g.interestingWordsTermColors = { '154', '121', '211', '137', '214', '222' }
|
|
|
|
-- vim-polyglot
|
|
vim.g.rustfmt_autosave = 1
|