vimrc: use telescope instead of fzf
This commit is contained in:
parent
ddce6c056d
commit
cef8ba662b
24
vimrc
24
vimrc
@ -11,9 +11,6 @@ Plug 'chrisbra/Recover.vim'
|
|||||||
|
|
||||||
Plug 'Shougo/vimproc.vim' , { 'do': 'make -f make_unix.mak' }
|
Plug 'Shougo/vimproc.vim' , { 'do': 'make -f make_unix.mak' }
|
||||||
|
|
||||||
Plug 'junegunn/fzf', { 'dir': '~/.fzf' }
|
|
||||||
Plug 'junegunn/fzf.vim'
|
|
||||||
|
|
||||||
Plug 'ciaranm/securemodelines'
|
Plug 'ciaranm/securemodelines'
|
||||||
|
|
||||||
Plug 'chrisbra/SudoEdit.vim'
|
Plug 'chrisbra/SudoEdit.vim'
|
||||||
@ -124,6 +121,15 @@ Plug 'neovim/nvim-lspconfig'
|
|||||||
Plug 'folke/lua-dev.nvim'
|
Plug 'folke/lua-dev.nvim'
|
||||||
Plug 'simrat39/rust-tools.nvim'
|
Plug 'simrat39/rust-tools.nvim'
|
||||||
|
|
||||||
|
Plug 'nvim-lua/popup.nvim'
|
||||||
|
Plug 'nvim-lua/plenary.nvim'
|
||||||
|
Plug 'nvim-telescope/telescope.nvim'
|
||||||
|
|
||||||
|
else
|
||||||
|
|
||||||
|
Plug 'junegunn/fzf', { 'dir': '~/.fzf' }
|
||||||
|
Plug 'junegunn/fzf.vim'
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
@ -191,8 +197,6 @@ au syntax tex syn region texZone start="\\begin{tacticsoutput}" end="\\end{tacti
|
|||||||
" disable annoying "file is read-only" warnings
|
" disable annoying "file is read-only" warnings
|
||||||
au FileChangedRO * set noreadonly
|
au FileChangedRO * set noreadonly
|
||||||
|
|
||||||
nnoremap <c-p> :FZF<cr>
|
|
||||||
|
|
||||||
if has('nvim-0.5')
|
if has('nvim-0.5')
|
||||||
lua <<EOF
|
lua <<EOF
|
||||||
require('lean').setup{
|
require('lean').setup{
|
||||||
@ -332,6 +336,16 @@ nnoremap ]d <cmd>lua vim.lsp.diagnostic.goto_next()<CR>
|
|||||||
nnoremap <space>q <cmd>lua vim.lsp.diagnostic.set_loclist()<CR>
|
nnoremap <space>q <cmd>lua vim.lsp.diagnostic.set_loclist()<CR>
|
||||||
nnoremap <space>f <cmd>lua vim.lsp.buf.formatting()<CR>
|
nnoremap <space>f <cmd>lua vim.lsp.buf.formatting()<CR>
|
||||||
|
|
||||||
|
nnoremap <c-p> <cmd>Telescope find_files<cr>
|
||||||
|
nnoremap <leader>ff <cmd>Telescope find_files<cr>
|
||||||
|
nnoremap <leader>fg <cmd>Telescope live_grep<cr>
|
||||||
|
nnoremap <leader>fb <cmd>Telescope buffers<cr>
|
||||||
|
nnoremap <leader>fh <cmd>Telescope help_tags<cr>
|
||||||
|
|
||||||
|
else
|
||||||
|
|
||||||
|
nnoremap <c-p> :FZF<cr>
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let g:tex_flavor = 'latex'
|
let g:tex_flavor = 'latex'
|
||||||
|
Loading…
Reference in New Issue
Block a user