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
map <leader>e :NERDTreeToggle<CR>
" fzf
nmap <C-y> :Buffers<CR>
nmap <Leader>f :GFiles<CR>
nmap <Leader>l :Lines<CR>
" Telescope
nnoremap <C-y> <cmd>Telescope buffers<CR>
nnoremap <leader>f <cmd>Telescope find_files<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
nnoremap <leader>gg :G<cr>

View file

@ -43,10 +43,6 @@ augroup VimDiff
autocmd VimEnter,FilterWritePre * if &diff | GitGutterDisable | endif
augroup END
" FZF SETUP
" =========================
let g:fzf_buffers_jump = 1
" VIMWIKI SETUP
" =========================
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'
" TREESITTER
" lua <<EOF
" require'nvim-treesitter.configs'.setup {
" highlight = {
" enable = true,
" },
" indent = {
" enable = true
" },
" }
" EOF
lua <<EOF
require'nvim-treesitter.configs'.setup {
highlight = {
enable = true,
},
indent = {
enable = true
},
}
EOF

View file

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