nvim: add telescope plugin
This commit is contained in:
parent
f066082b30
commit
f86c799de7
@ -116,6 +116,10 @@ highlight GitGutterAdd ctermfg=green
|
||||
highlight GitGutterChange ctermfg=yellow
|
||||
highlight GitGutterDelete ctermfg=red
|
||||
|
||||
" fancy picker stuff
|
||||
|
||||
source $XDG_CONFIG_HOME/nvim/telescope.vim
|
||||
|
||||
call plug#end()
|
||||
|
||||
source $XDG_CONFIG_HOME/nvim/color.vim
|
||||
|
@ -38,6 +38,7 @@ local on_attach = function(client, bufnr)
|
||||
buf_set_keymap('n', 'gs', '<cmd>lua vim.lsp.buf.signature_help()<CR>', opts)
|
||||
buf_set_keymap('n', 'gt', '<cmd>lua vim.lsp.buf.type_definition()<CR>', opts)
|
||||
buf_set_keymap('n', '<space>rn', '<cmd>lua vim.lsp.buf.rename()<CR>', opts)
|
||||
buf_set_keymap('n', '<space>ss', '<cmd>lua vim.lsp.buf.workspace_symbol()<CR>', opts)
|
||||
buf_set_keymap('n', 'gr', '<cmd>lua vim.lsp.buf.references()<CR>', opts)
|
||||
buf_set_keymap('n', '<space>e', '<cmd>lua vim.lsp.diagnostic.show_line_diagnostics()<CR>', opts)
|
||||
buf_set_keymap('n', '[d', '<cmd>lua vim.lsp.diagnostic.goto_prev()<CR>', opts)
|
||||
|
9
src/.config/nvim/telescope.vim
Normal file
9
src/.config/nvim/telescope.vim
Normal file
@ -0,0 +1,9 @@
|
||||
Plug 'nvim-telescope/telescope.nvim', { 'branch': '0.1.x' }
|
||||
Plug 'nvim-lua/plenary.nvim', { 'branch': '0.1.x' }
|
||||
|
||||
nnoremap <leader>ef <cmd>Telescope find_files<cr>
|
||||
nnoremap <leader>eg <cmd>Telescope live_grep<cr>
|
||||
nnoremap <leader>em <cmd>Telescope buffers<cr>
|
||||
nnoremap <leader>eh <cmd>Telescope help_tags<cr>
|
||||
nnoremap <leader>es <cmd>Telescope lsp_document_symbols<cr>
|
||||
nnoremap <leader>eb <cmd>Telescope keymaps<cr>
|
Loading…
Reference in New Issue
Block a user