mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-13 02:05:40 +08:00
Merge branch 'master' of https://github.com/SpaceVim/SpaceVim
This commit is contained in:
commit
22b9807b63
@ -163,6 +163,8 @@ function! SpaceVim#autocmds#VimEnter() abort
|
|||||||
call call(g:_spacevim_bootstrap_after, [])
|
call call(g:_spacevim_bootstrap_after, [])
|
||||||
catch
|
catch
|
||||||
call SpaceVim#logger#error('failed to call bootstrap_after function: ' . g:_spacevim_bootstrap_after)
|
call SpaceVim#logger#error('failed to call bootstrap_after function: ' . g:_spacevim_bootstrap_after)
|
||||||
|
call SpaceVim#logger#error(' exception: ' . v:exception)
|
||||||
|
call SpaceVim#logger#error(' throwpoint: ' . v:throwpoint)
|
||||||
endtry
|
endtry
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
let s:TOML = SpaceVim#api#import('data#toml')
|
let s:TOML = SpaceVim#api#import('data#toml')
|
||||||
let s:JSON = SpaceVim#api#import('data#json')
|
let s:JSON = SpaceVim#api#import('data#json')
|
||||||
|
let s:FILE = SpaceVim#api#import('file')
|
||||||
|
|
||||||
function! SpaceVim#custom#profile(dict) abort
|
function! SpaceVim#custom#profile(dict) abort
|
||||||
for key in keys(a:dict)
|
for key in keys(a:dict)
|
||||||
@ -41,15 +42,17 @@ function! SpaceVim#custom#autoconfig(...) abort
|
|||||||
call menu.menu(ques)
|
call menu.menu(ques)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function! s:awesome_mode() abort
|
function! s:awesome_mode() abort
|
||||||
let sep = SpaceVim#api#import('file').separator
|
let sep = s:FILE.separator
|
||||||
let f = fnamemodify(g:_spacevim_root_dir, ':h') . join(['', 'mode', 'dark_powered.toml'], sep)
|
let f = fnamemodify(g:_spacevim_root_dir, ':h') . join(['', 'mode', 'dark_powered.toml'], sep)
|
||||||
let config = readfile(f, '')
|
let config = readfile(f, '')
|
||||||
call s:write_to_config(config)
|
call s:write_to_config(config)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:basic_mode() abort
|
function! s:basic_mode() abort
|
||||||
let sep = SpaceVim#api#import('file').separator
|
let sep = s:FILE.separator
|
||||||
let f = fnamemodify(g:_spacevim_root_dir, ':h') . join(['', 'mode', 'basic.toml'], sep)
|
let f = fnamemodify(g:_spacevim_root_dir, ':h') . join(['', 'mode', 'basic.toml'], sep)
|
||||||
let config = readfile(f, '')
|
let config = readfile(f, '')
|
||||||
call s:write_to_config(config)
|
call s:write_to_config(config)
|
||||||
@ -61,10 +64,12 @@ function! s:write_to_config(config) abort
|
|||||||
let g:_spacevim_global_config_path = global_dir . 'init.toml'
|
let g:_spacevim_global_config_path = global_dir . 'init.toml'
|
||||||
let cf = global_dir . 'init.toml'
|
let cf = global_dir . 'init.toml'
|
||||||
if filereadable(cf)
|
if filereadable(cf)
|
||||||
|
call SpaceVim#logger#warn("Failed to generate config file, It is not readable: " . cf)
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
if !isdirectory(fnamemodify(cf, ':p:h'))
|
let dir = expand(fnamemodify(cf, ':p:h'))
|
||||||
call mkdir(expand(fnamemodify(cf, ':p:h')), 'p')
|
if !isdirectory(dir)
|
||||||
|
call mkdir(dir), 'p')
|
||||||
endif
|
endif
|
||||||
call writefile(a:config, cf, '')
|
call writefile(a:config, cf, '')
|
||||||
endfunction
|
endfunction
|
||||||
|
@ -41,6 +41,11 @@
|
|||||||
- Fix dein-ui error, add syntax ([#2352](https://github.com/SpaceVim/SpaceVim/pull/2352), [`c9e1d4c`](https://github.com/SpaceVim/SpaceVim/commit/c9e1d4c9635c483bb3334c00ed36026d18950070))
|
- 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))
|
- Fix fullscreen key binding ([#2351](https://github.com/SpaceVim/SpaceVim/pull/2351))
|
||||||
- Added missed syntax for detached FlyGrep ([#2353](https://github.com/SpaceVim/SpaceVim/pull/2353), [`08d0713`](https://github.com/SpaceVim/SpaceVim/commit/08d0713c4494ca401942a6ca10a48a1ac8484ce1))
|
- Added missed syntax for detached FlyGrep ([#2353](https://github.com/SpaceVim/SpaceVim/pull/2353), [`08d0713`](https://github.com/SpaceVim/SpaceVim/commit/08d0713c4494ca401942a6ca10a48a1ac8484ce1))
|
||||||
|
- Add log for generate configuration file ([#2369](https://github.com/SpaceVim/SpaceVim/pull/2369))
|
||||||
|
- Fix FlyGrep syntax to support different outputs ([#2363](https://github.com/SpaceVim/SpaceVim/pull/2363), [`0b26f40`](https://github.com/SpaceVim/SpaceVim/commit/0b26f407d879427505418f5c3b4c1d753f3f4317))
|
||||||
|
- Fix `project_rooter_automatically = 0` option to not change directory to project root ([#2363](https://github.com/SpaceVim/SpaceVim/pull/2365))
|
||||||
|
- Add log for generate configuration file ([#2369](https://github.com/SpaceVim/SpaceVim/pull/2369))
|
||||||
|
|
||||||
|
|
||||||
### 移除的功能
|
### 移除的功能
|
||||||
|
|
||||||
|
@ -43,6 +43,7 @@ The next release is v1.0.0.
|
|||||||
- Added missed syntax for detached FlyGrep ([#2353](https://github.com/SpaceVim/SpaceVim/pull/2353), [`08d0713`](https://github.com/SpaceVim/SpaceVim/commit/08d0713c4494ca401942a6ca10a48a1ac8484ce1))
|
- Added missed syntax for detached FlyGrep ([#2353](https://github.com/SpaceVim/SpaceVim/pull/2353), [`08d0713`](https://github.com/SpaceVim/SpaceVim/commit/08d0713c4494ca401942a6ca10a48a1ac8484ce1))
|
||||||
- Fix FlyGrep syntax to support different outputs ([#2363](https://github.com/SpaceVim/SpaceVim/pull/2363), [`0b26f40`](https://github.com/SpaceVim/SpaceVim/commit/0b26f407d879427505418f5c3b4c1d753f3f4317))
|
- Fix FlyGrep syntax to support different outputs ([#2363](https://github.com/SpaceVim/SpaceVim/pull/2363), [`0b26f40`](https://github.com/SpaceVim/SpaceVim/commit/0b26f407d879427505418f5c3b4c1d753f3f4317))
|
||||||
- Fix `project_rooter_automatically = 0` option to not change directory to project root ([#2363](https://github.com/SpaceVim/SpaceVim/pull/2365))
|
- Fix `project_rooter_automatically = 0` option to not change directory to project root ([#2363](https://github.com/SpaceVim/SpaceVim/pull/2365))
|
||||||
|
- Add log for generate configuration file ([#2369](https://github.com/SpaceVim/SpaceVim/pull/2369))
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user