Update telescope
This commit is contained in:
parent
757ad38b85
commit
360fda5bba
7
init.vim
7
init.vim
@ -89,7 +89,7 @@
|
|||||||
|
|
||||||
" Language server
|
" Language server
|
||||||
Plug 'neovim/nvim-lspconfig'
|
Plug 'neovim/nvim-lspconfig'
|
||||||
Plug 'mrcjkb/rustaceanvim', { 'tag': '3.*' }
|
Plug 'mrcjkb/rustaceanvim', { 'tag': '5.*' }
|
||||||
Plug 'lvimuser/lsp-inlayhints.nvim' " TODO: Inlay hints. Will be native to nvim in v0.10, so delete after that
|
Plug 'lvimuser/lsp-inlayhints.nvim' " TODO: Inlay hints. Will be native to nvim in v0.10, so delete after that
|
||||||
|
|
||||||
" Support for DAP (Debug Adapter Protocol)
|
" Support for DAP (Debug Adapter Protocol)
|
||||||
@ -104,7 +104,7 @@
|
|||||||
|
|
||||||
" vim-telescope, dependencies, and related plugins
|
" vim-telescope, dependencies, and related plugins
|
||||||
Plug 'nvim-lua/plenary.nvim'
|
Plug 'nvim-lua/plenary.nvim'
|
||||||
Plug 'nvim-telescope/telescope.nvim', { 'branch': '0.1.x' }
|
Plug 'nvim-telescope/telescope.nvim', { 'tag': '0.1.*' }
|
||||||
Plug 'nvim-telescope/telescope-ui-select.nvim'
|
Plug 'nvim-telescope/telescope-ui-select.nvim'
|
||||||
Plug 'stevearc/dressing.nvim'
|
Plug 'stevearc/dressing.nvim'
|
||||||
|
|
||||||
@ -502,8 +502,7 @@ if !(has('win32') || has('win64'))
|
|||||||
function! FuzzyFileFinder()
|
function! FuzzyFileFinder()
|
||||||
let l:IsInGitRepo = system('git rev-parse --is-inside-work-tree')
|
let l:IsInGitRepo = system('git rev-parse --is-inside-work-tree')
|
||||||
if l:IsInGitRepo =~ 'true'
|
if l:IsInGitRepo =~ 'true'
|
||||||
let l:GitRepoDir = system('git rev-parse --show-toplevel')
|
execute 'Telescope git_files show_untracked=true'
|
||||||
execute 'Telescope find_files cwd=' . l:GitRepoDir->fnameescape()
|
|
||||||
else
|
else
|
||||||
execute 'Telescope find_files cwd=' . glob('~/')->fnameescape()
|
execute 'Telescope find_files cwd=' . glob('~/')->fnameescape()
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user