40 lines
1.2 KiB
Django/Jinja
40 lines
1.2 KiB
Django/Jinja
{{ add_source('nvim-telescope/telescope.nvim') -}}
|
|
{# Dependencies #}
|
|
{{ add_source('nvim-lua/popup.nvim') -}}
|
|
{{ add_source('nvim-lua/plenary.nvim') -}}
|
|
|
|
noremap gF <cmd>Telescope find_files<cr>
|
|
noremap gf <cmd>Telescope git_files<cr>
|
|
noremap gB <cmd>Telescope buffers<cr>
|
|
noremap gl <cmd>Telescope current_buffer_fuzzy_find<cr>
|
|
noremap gL <cmd>Telescope live_grep<cr>
|
|
noremap gT <cmd>Telescope tags<cr>
|
|
noremap gt <cmd>Telescope treesitter<cr>
|
|
noremap gm <cmd>Telescope marks<cr>
|
|
noremap gh <cmd>Telescope oldfiles<cr>
|
|
noremap gH <cmd>Telescope command_history<cr>
|
|
noremap gS <cmd>Telescope search_history<cr>
|
|
noremap gc <cmd>Telescope commands<cr>
|
|
noremap gr <cmd>Telescope lsp_references<cr>
|
|
noremap ga <cmd>Telescope lsp_code_actions<cr>
|
|
vnoremap ga <cmd>Telescope lsp_range_code_actions<cr>
|
|
noremap gq <cmd>Telescope lsp_document_diagnostics<cr>
|
|
noremap gE <cmd>Telescope lsp_workspace_diagnostics<cr>
|
|
noremap ge <cmd>Telescope lsp_definitions<cr>
|
|
|
|
lua << EOF
|
|
require('telescope').setup{
|
|
defaults = {
|
|
vimgrep_arguments = {
|
|
'rg',
|
|
'--color=never',
|
|
'--no-heading',
|
|
'--with-filename',
|
|
'--line-number',
|
|
'--column',
|
|
'--smart-case'
|
|
},
|
|
}
|
|
}
|
|
EOF
|