Skip to content

Instantly share code, notes, and snippets.

@kuznero
Last active September 28, 2022 07:10
Show Gist options
  • Save kuznero/c4c8941dc8fe1da9707b331ce9007218 to your computer and use it in GitHub Desktop.
Save kuznero/c4c8941dc8fe1da9707b331ce9007218 to your computer and use it in GitHub Desktop.
SpaceVim Config
# rm -rf ~/.SpaceVim* ~/.vim* ~/.config/nvim ~/.local/share/nvim ~/.cache/SpaceVim ~/.cache/vim* ~/.cache/nvim*
#=============================================================================
# basic.toml --- basic configuration example for SpaceVim
# Copyright (c) 2016-2022 Wang Shidong & Contributors
# Author: Wang Shidong < wsdjeg@outlook.com >
# URL: https://spacevim.org
# License: GPLv3
#=============================================================================
# All SpaceVim option below [option] section
[options]
# valid themes: molokai srcery onedark jellybeans palenight one nord
# gruvbox NeoSolarized hybrid material dracula SpaceVim
colorscheme = "onedark"
colorscheme_bg = "dark"
# Disable guicolors in basic mode, many terminal do not support 24bit
# true colors
enable_guicolors = false
# Disable statusline separator, if you want to use other value, please
# install nerd fonts
statusline_separator = "arrow"
statusline_iseparator = "bar"
buffer_index_type = 4
windows_index_type = 3
enable_tabline_filetype_icon = true
enable_statusline_mode = true
statusline_unicode = true
# Valid statusline sections:
# 'winnr' window number
# 'syntax checking'
# 'filename' file name
# 'fileformat' file format
# 'major mode'
# 'minor mode lighters'
# 'cursorpos' cursor position
# 'percentage' content range
# 'date' date
# 'time' time
# 'whitespace' line number with trailing space at the end
# 'battery status' battery status
# 'input method' input method
# 'search status' search index
statusline_left_sections = [ 'winnr', 'major mode', 'filename', 'fileformat', 'minor mode lighters', 'version control info', 'search status' ]
statusline_right_sections = [ 'cursorpos', 'percentage', 'input method', 'date', 'time' ]
vimcompatible = true
# Enable autocomplete layer
[[layers]]
name = 'autocomplete'
auto_completion_return_key_behavior = "complete"
auto_completion_tab_key_behavior = "cycle"
[[layers]]
name = "colorscheme"
[[layers]]
name = 'shell'
default_position = 'top'
default_height = 30
[[layers]]
name = "core#banner"
[[layers]]
name = "core#statusline"
[[layers]]
name = "core#tabline"
[[layers]]
name = "checkers"
[[layers]]
name = "denite"
[[layers]]
name = "git"
[[layers]]
name = "lang#dockerfile"
[[layers]]
name = 'lang#go'
format_on_save = true
[[layers]]
name = "lang#powershell"
[[layers]]
name = "lang#sh"
[[layers]]
name = "lang#toml"
[[layers]]
name = "lsp"
filetypes = [ "go", "sh" ]
[[layers]]
name = "sudo"
[[layers]]
name = "tmux"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment