Skip to content

Instantly share code, notes, and snippets.

@rurumimic
Created December 24, 2022 11:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rurumimic/47dccd4882f6f8876a745201f3bb4c97 to your computer and use it in GitHub Desktop.
Save rurumimic/47dccd4882f6f8876a745201f3bb4c97 to your computer and use it in GitHub Desktop.
SpaceVim configuration

~/.SpaceVim.d/init.toml

# All SpaceVim option below [option] section
[options]
    autocomplete_method = "coc"
    # set spacevim theme. by default colorscheme layer is not loaded,
    # if you want to use more colorscheme, please load the colorscheme
    # layer
    colorscheme = "dracula"
    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 = "nil"
    statusline_iseparator = "bar"
    buffer_index_type = 4
    windows_index_type = 3
    enable_tabline_filetype_icon = false
    enable_statusline_mode = false
    statusline_unicode = false
    # Enable vim compatible mode, avoid changing origin vim key bindings
    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 = 'git'

[[layers]]
name = 'VersionControl'

[[layers]]
name = "format"

[[layers]]
name = "lang#go"

[[layers]]
name = "lang#rust"

~/.SpaceVim/init.vim

"=============================================================================
" init.vim --- Entry file for neovim
" Copyright (c) 2016-2022 Wang Shidong & Contributors
" Author: Wang Shidong < wsdjeg@outlook.com >
" URL: https://spacevim.org
" License: GPLv3
"=============================================================================

execute 'source' fnamemodify(expand('<sfile>'), ':h').'/main.vim'

let g:python_host_prog='/Users/dodo/.pyenv/versions/vim2/bin/python'
let g:python3_host_prog='/Users/dodo/.pyenv/versions/vim/bin/python'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment