1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-04-14 15:19:12 +08:00

Fix vimdoc support in windows (#2372)

* Fix vimdoc support in windows

ref:
- https://github.com/neovim/neovim/issues/9391
- https://github.com/google/vimdoc/issues/106

* Update wiki
This commit is contained in:
Wang Shidong 2018-12-23 10:58:16 +08:00 committed by GitHub
parent ecab6eb52b
commit 37bde366dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 1664 additions and 1639 deletions

View File

@ -6,6 +6,11 @@
" License: GPLv3
"=============================================================================
let s:SYS = SpaceVim#api#import('system')
let s:JOB = SpaceVim#api#import('job')
"autocmds
function! SpaceVim#autocmds#init() abort
augroup SpaceVim_core
@ -102,10 +107,12 @@ function! s:fixindentline() abort
endif
endfunction
function! s:generate_doc() abort
if filereadable('./addon-info.json') && executable('vimdoc')
call SpaceVim#api#import('job').start(['vimdoc', '.'])
" neovim in windows executable function is broken
" https://github.com/neovim/neovim/issues/9391
if filereadable('./addon-info.json') && executable('vimdoc') && !s:SYS.isWindows
call s:JOB.start(['vimdoc', '.'])
elseif filereadable('./addon-info.json') && executable('python')
call SpaceVim#api#import('job').start(['python', '-m', 'vimdoc', '.'])
call s:JOB.start(['python', '-m', 'vimdoc', '.'])
endif
endfunction

File diff suppressed because it is too large Load Diff

View File

@ -36,7 +36,7 @@
- Ctrlp support in windows ([#2325](https://github.com/SpaceVim/SpaceVim/pull/2325))
- Fix layers list in windows ([#2327](https://github.com/SpaceVim/SpaceVim/pull/2327))
- Fix statusline icon ([#2328](https://github.com/SpaceVim/SpaceVim/pull/2328))
- Fix vimdoc command in windows ([#2338](https://github.com/SpaceVim/SpaceVim/pull/2338))
- Fix vimdoc command in windows ([#2338](https://github.com/SpaceVim/SpaceVim/pull/2338), [#2372](https://github.com/SpaceVim/SpaceVim/pull/2372))
- Fix comment paragraphs key bindings ([#2340](https://github.com/SpaceVim/SpaceVim/pull/2340))
- Fix dein-ui error, add syntax ([#2352](https://github.com/SpaceVim/SpaceVim/pull/2352), [`c9e1d4c`](https://github.com/SpaceVim/SpaceVim/commit/c9e1d4c9635c483bb3334c00ed36026d18950070))
- Fix fullscreen key binding ([#2351](https://github.com/SpaceVim/SpaceVim/pull/2351))

View File

@ -36,7 +36,7 @@ The next release is v1.0.0.
- Ctrlp support in windows ([#2325](https://github.com/SpaceVim/SpaceVim/pull/2325))
- Fix layers list in windows ([#2327](https://github.com/SpaceVim/SpaceVim/pull/2327))
- Fix statusline icon ([#2328](https://github.com/SpaceVim/SpaceVim/pull/2328))
- Fix vimdoc command in windows ([#2338](https://github.com/SpaceVim/SpaceVim/pull/2338))
- Fix vimdoc command in windows ([#2338](https://github.com/SpaceVim/SpaceVim/pull/2338), [#2372](https://github.com/SpaceVim/SpaceVim/pull/2372))
- Fix comment paragraphs key bindings ([#2340](https://github.com/SpaceVim/SpaceVim/pull/2340))
- Fix dein-ui error, add syntax ([#2352](https://github.com/SpaceVim/SpaceVim/pull/2352), [`c9e1d4c`](https://github.com/SpaceVim/SpaceVim/commit/c9e1d4c9635c483bb3334c00ed36026d18950070))
- Fix fullscreen key binding ([#2351](https://github.com/SpaceVim/SpaceVim/pull/2351))