neovim switch to telescope from fzf

This commit is contained in:
Jidbo 2021-12-15 12:29:34 +01:00 committed by saibotk
parent a8561a5bed
commit a191b6758d
Signed by: saibotk
GPG key ID: 67585F0065E261D5
3 changed files with 22 additions and 26 deletions

View file

@ -21,10 +21,15 @@ nnoremap <leader>h :set rnu!<CR>
" nerdtree " nerdtree
map <leader>e :NERDTreeToggle<CR> map <leader>e :NERDTreeToggle<CR>
" fzf " Telescope
nmap <C-y> :Buffers<CR> nnoremap <C-y> <cmd>Telescope buffers<CR>
nmap <Leader>f :GFiles<CR> nnoremap <leader>f <cmd>Telescope find_files<CR>
nmap <Leader>l :Lines<CR> nnoremap <leader>l <cmd>Telescope live_grep<CR>
nnoremap <silent> gD <cmd>Telescope lsp_implementations<CR>
nnoremap <silent> gH <cmd>Telescope lsp_code_actions<CR>
nnoremap <silent> gd <cmd>Telescope lsp_definitions<CR>
nnoremap <silent> gr <cmd>Telescope lsp_references<CR>
nnoremap <silent> gy <cmd>Telescope treesitter<CR>
" vim fugitive " vim fugitive
nnoremap <leader>gg :G<cr> nnoremap <leader>gg :G<cr>

View file

@ -43,10 +43,6 @@ augroup VimDiff
autocmd VimEnter,FilterWritePre * if &diff | GitGutterDisable | endif autocmd VimEnter,FilterWritePre * if &diff | GitGutterDisable | endif
augroup END augroup END
" FZF SETUP
" =========================
let g:fzf_buffers_jump = 1
" VIMWIKI SETUP " VIMWIKI SETUP
" ========================= " =========================
let g:vimwiki_list = [{'path': '~/.notes/', let g:vimwiki_list = [{'path': '~/.notes/',
@ -143,13 +139,13 @@ let g:user_emmet_leader_key='<C-i>'
let g:languagetool_cmd='/usr/bin/languagetool' let g:languagetool_cmd='/usr/bin/languagetool'
" TREESITTER " TREESITTER
" lua <<EOF lua <<EOF
" require'nvim-treesitter.configs'.setup { require'nvim-treesitter.configs'.setup {
" highlight = { highlight = {
" enable = true, enable = true,
" }, },
" indent = { indent = {
" enable = true enable = true
" }, },
" } }
" EOF EOF

View file

@ -31,8 +31,8 @@ Plug 'preservim/nerdtree'
Plug 'ryanoasis/vim-devicons' Plug 'ryanoasis/vim-devicons'
" fzf plugin " fzf plugin
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } Plug 'nvim-lua/plenary.nvim'
Plug 'junegunn/fzf.vim' Plug 'nvim-telescope/telescope.nvim'
" vimwiki " vimwiki
Plug 'vimwiki/vimwiki' Plug 'vimwiki/vimwiki'
@ -69,12 +69,7 @@ Plug 'nvim-lua/completion-nvim'
Plug 'sbdchd/neoformat' Plug 'sbdchd/neoformat'
" treesitter " treesitter
" Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
" Plug 'nvim-treesitter/playground'
" disable latex before loading
let g:polyglot_disabled = ["latex"]
Plug 'sheerun/vim-polyglot'
" latex " latex
Plug 'lervag/vimtex' Plug 'lervag/vimtex'