You've already forked dotfiles
autopairs plugin for pair completion as the snippets are not nuanced enough at the moment (or possibly ever).
54 lines
1.7 KiB
Lua
54 lines
1.7 KiB
Lua
vim.pack.add({
|
|
-- 'https://github.com/kevinhwang91/nvim-bqf',
|
|
'https://github.com/nvim-lua/plenary.nvim',
|
|
'https://github.com/nvim-telescope/telescope.nvim',
|
|
})
|
|
|
|
require('telescope').setup {
|
|
defaults = {
|
|
file_ignore_patterns = {
|
|
'.png$',
|
|
'.jpg$',
|
|
'.jpeg$',
|
|
'.ico$',
|
|
'.icns$',
|
|
'.webp$',
|
|
'.uproject$',
|
|
'-workspace$',
|
|
'.git/',
|
|
'.node_modules/',
|
|
'node_modules',
|
|
},
|
|
layout_config = { prompt_position = 'bottom' },
|
|
-- layout_strategy = 'vertical',
|
|
mappings = {
|
|
i = { ['<ESC>'] = require('telescope.actions').close, },
|
|
},
|
|
prompt_prefix = ' ',
|
|
results_title = false,
|
|
selection_caret = '➤ ',
|
|
sorting_strategy = 'ascending',
|
|
winblend = 0,
|
|
},
|
|
pickers = {
|
|
diagnostics = {
|
|
initial_mode = 'normal',
|
|
layout_config = {
|
|
preview_cutoff = 9999,
|
|
},
|
|
},
|
|
},
|
|
}
|
|
|
|
local builtin = require('telescope.builtin')
|
|
|
|
vim.keymap.set('n', ';;', function() builtin.resume() end)
|
|
vim.keymap.set('n', ';b', function() builtin.buffers() end)
|
|
vim.keymap.set('n', ';d', function() builtin.diagnostics() end)
|
|
vim.keymap.set('n', ';f', function() builtin.find_files({ no_ignore = false, hidden = true }) end)
|
|
vim.keymap.set('n', ';h', function() builtin.help_tags() end)
|
|
vim.keymap.set('n', ';r', function() builtin.live_grep() end)
|
|
vim.keymap.set('n', ';s', function() builtin.lsp_document_symbols() end)
|
|
vim.keymap.set('n', ';t', function() builtin.treesitter() end)
|
|
vim.keymap.set('n', ';w', function() builtin.lsp_dynamic_workspace_symbols() end)
|