mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 17:30:04 +08:00
Fix config
This commit is contained in:
parent
0d92b51c68
commit
427de049cc
@ -43,20 +43,23 @@ endfunction
|
||||
|
||||
function! s:awesome_mode() abort
|
||||
let sep = SpaceVim#api#import('file').separator
|
||||
let f = fnamemodify(g:_spacevim_root_dir, ':h') . join(['', 'mode', 'dark_powered.vim'], sep)
|
||||
let f = fnamemodify(g:_spacevim_root_dir, ':h') . join(['', 'mode', 'dark_powered.toml'], sep)
|
||||
let config = readfile(f, '')
|
||||
call s:write_to_config(config)
|
||||
endfunction
|
||||
|
||||
function! s:basic_mode() abort
|
||||
let sep = SpaceVim#api#import('file').separator
|
||||
let f = fnamemodify(g:_spacevim_root_dir, ':h') . join(['', 'mode', 'basic.vim'], sep)
|
||||
let f = fnamemodify(g:_spacevim_root_dir, ':h') . join(['', 'mode', 'basic.toml'], sep)
|
||||
let config = readfile(f, '')
|
||||
call s:write_to_config(config)
|
||||
endfunction
|
||||
|
||||
function! s:write_to_config(config) abort
|
||||
let cf = expand('~/.SpaceVim.d/init.vim')
|
||||
|
||||
let global_dir = empty($SPACEVIMDIR) ? expand('~/.SpaceVim.d/') : $SPACEVIMDIR
|
||||
let g:_spacevim_global_config_path = global_dir . 'init.toml'
|
||||
let cf = global_dir . 'init.toml'
|
||||
if filereadable(cf)
|
||||
return
|
||||
endif
|
||||
|
@ -1,10 +0,0 @@
|
||||
{
|
||||
"colorscheme": "grubox",
|
||||
"background": "dark",
|
||||
"guicolors": true,
|
||||
"statusline_separator": "nil",
|
||||
"statusline_inactive_separator": "bar",
|
||||
"buffer_index_type": 4,
|
||||
"filetype_icon": false,
|
||||
"statusline_display_mode": false
|
||||
}
|
@ -1,30 +0,0 @@
|
||||
"=============================================================================
|
||||
" basic.vim --- Basic mode of SpaceVim
|
||||
" Copyright (c) 2016-2017 Wang Shidong & Contributors
|
||||
" Author: Wang Shidong < wsdjeg at 163.com >
|
||||
" URL: https://spacevim.org
|
||||
" License: GPLv3
|
||||
"=============================================================================
|
||||
|
||||
" SpaceVim Options: {{{
|
||||
|
||||
" Disable true colors
|
||||
let g:spacevim_enable_guicolors = 0
|
||||
|
||||
" Use empty string as statusline separator
|
||||
let g:spacevim_statusline_separator = 'nil'
|
||||
|
||||
" Use | as inactive separator of statusline
|
||||
let g:spacevim_statusline_inactive_separator = 'bar'
|
||||
|
||||
" Use general integer as buffer index
|
||||
let g:spacevim_buffer_index_type = 4
|
||||
|
||||
" Disable Filetype icon
|
||||
let g:spacevim_enable_tabline_filetype_icon = 0
|
||||
|
||||
" Disable mode in statusline
|
||||
let g:spacevim_enable_statusline_display_mode = 0
|
||||
" }}}
|
||||
|
||||
|
30
mode/dark_powered.toml
Normal file
30
mode/dark_powered.toml
Normal file
@ -0,0 +1,30 @@
|
||||
# This is basic configuration example for SpaceVim
|
||||
|
||||
# All SpaceVim option below [option] section
|
||||
[options]
|
||||
# set spacevim theme. by default colorscheme layer is not loaded,
|
||||
# if you want to use more colorscheme, please load the colorscheme
|
||||
# layer
|
||||
colorscheme = "gruvbox"
|
||||
background = "dark"
|
||||
# Disable guicolors in basic mode, many terminal do not support 24bit
|
||||
# true colors
|
||||
guicolors = true
|
||||
# Disable statusline separator, if you want to use other value, please
|
||||
# install nerd fonts
|
||||
statusline_separator = "nil"
|
||||
statusline_separator = "bar"
|
||||
buffer_index_type = 4
|
||||
filetype_icon = false
|
||||
statusline_display_mode = false
|
||||
|
||||
# Enable autocomplete layer
|
||||
[[layers]]
|
||||
name = 'autocomplete'
|
||||
auto-completion-return-key-behavior = "complete"
|
||||
auto-completion-tab-key-behavior = "cycle"
|
||||
|
||||
[[layers]]
|
||||
name = 'shell'
|
||||
default_position = 'top'
|
||||
default_height = 30
|
@ -1,24 +0,0 @@
|
||||
"=============================================================================
|
||||
" dark_powered.vim --- Dark powered mode of SpaceVim
|
||||
" Copyright (c) 2016-2017 Wang Shidong & Contributors
|
||||
" Author: Wang Shidong < wsdjeg at 163.com >
|
||||
" URL: https://spacevim.org
|
||||
" License: GPLv3
|
||||
"=============================================================================
|
||||
|
||||
|
||||
" SpaceVim Options: {{{
|
||||
let g:spacevim_enable_debug = 1
|
||||
let g:spacevim_realtime_leader_guide = 1
|
||||
let g:spacevim_enable_tabline_filetype_icon = 1
|
||||
let g:spacevim_enable_statusline_display_mode = 0
|
||||
let g:spacevim_enable_os_fileformat_icon = 1
|
||||
let g:spacevim_buffer_index_type = 1
|
||||
let g:spacevim_enable_vimfiler_welcome = 1
|
||||
let g:spacevim_enable_debug = 1
|
||||
" }}}
|
||||
|
||||
" SpaceVim Layers: {{{
|
||||
" }}}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user