mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-23 17:49:57 +08:00
perf(ctags): improve ctags log
This commit is contained in:
parent
a85c19a990
commit
c25a40d3e0
4
bundle/gtags.vim/autoload/ctags.vim
vendored
4
bundle/gtags.vim/autoload/ctags.vim
vendored
@ -52,14 +52,16 @@ endfunction
|
|||||||
|
|
||||||
function! ctags#update(...) abort
|
function! ctags#update(...) abort
|
||||||
if !s:version_checked
|
if !s:version_checked
|
||||||
|
call s:LOGGER.info('start to check ctags version')
|
||||||
call s:JOB.start([g:gtags_ctags_bin, '--version'], {
|
call s:JOB.start([g:gtags_ctags_bin, '--version'], {
|
||||||
\ 'on_stdout': function('s:version_std_out'),
|
\ 'on_stdout': function('s:version_std_out'),
|
||||||
\ 'on_exit': function('s:version_exit'),
|
\ 'on_exit': function('s:version_exit'),
|
||||||
\ })
|
\ })
|
||||||
return
|
return
|
||||||
|
else
|
||||||
|
call s:LOGGER.info('update ctags database for ' . project_root)
|
||||||
endif
|
endif
|
||||||
let project_root = getcwd()
|
let project_root = getcwd()
|
||||||
call s:LOGGER.info('update ctags database for ' . project_root)
|
|
||||||
let dir = s:FILE.unify_path(g:tags_cache_dir)
|
let dir = s:FILE.unify_path(g:tags_cache_dir)
|
||||||
\ . s:FILE.path_to_fname(project_root)
|
\ . s:FILE.path_to_fname(project_root)
|
||||||
let cmd = [g:gtags_ctags_bin]
|
let cmd = [g:gtags_ctags_bin]
|
||||||
|
@ -29,6 +29,12 @@ On Windows, the easiest way to install Neovim is to download
|
|||||||
[Neovim.zip](https://github.com/neovim/neovim/releases/download/nightly/nvim-win32.zip)
|
[Neovim.zip](https://github.com/neovim/neovim/releases/download/nightly/nvim-win32.zip)
|
||||||
from neovim release page. and extract it into `C:\Neovim`. You can also add `C:\Neovim\bin` to your `PATH`.
|
from neovim release page. and extract it into `C:\Neovim`. You can also add `C:\Neovim\bin` to your `PATH`.
|
||||||
|
|
||||||
|
You can also use [scoop](https://scoop.sh/) to install neovim.
|
||||||
|
|
||||||
|
```
|
||||||
|
scoop install neovim
|
||||||
|
```
|
||||||
|
|
||||||
### Linux
|
### Linux
|
||||||
|
|
||||||
You can install neovim or vim with default package manager.
|
You can install neovim or vim with default package manager.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user