Skip to content

Commit

Permalink
Replace vim stuff with SpaceVim
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilkka Poutanen committed Apr 5, 2020
1 parent ee9a020 commit ab4e4c9
Show file tree
Hide file tree
Showing 23 changed files with 105 additions and 2,423 deletions.
1 change: 0 additions & 1 deletion .VimballRecord

This file was deleted.

3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[submodule "neobundle.vim"]
path = neobundle.vim
url = https://github.com/Shougo/neobundle.vim.git
[submodule "tpm"]
path = tpm
url = https://github.com/tmux-plugins/tpm
Expand Down
18 changes: 18 additions & 0 deletions home/.SpaceVim.d/autoload/myspacevim.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
function! myspacevim#before() abort
let g:mapleader = ","
endfunction

function! myspacevim#after() abort
let g:neomake_javascript_eslint_maker = {
\ 'exe': 'npx',
\ 'args': ['--quiet', 'eslint', '--format=compact'],
\ 'errorformat': '%E%f: line %l\, col %c\, Error - %m,' .
\ '%W%f: line %l\, col %c\, Warning - %m,%-G,%-G%*\d problems%#',
\ 'cwd': '%:p:h',
\ 'output_stream': 'stdout',
\ }

let g:neomake_javascript_jsx_enabled_makers = ['eslint']

let g:neoformat_enabled_javascript = ['npxprettier']
endfunction
7 changes: 7 additions & 0 deletions home/.SpaceVim.d/autoload/neoformat/formatters/javascript.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
function! neoformat#formatters#javascript#npxprettier() abort
return {
\ 'exe': 'npx',
\ 'args': ['--quiet', 'prettier', '--stdin', '--stdin-filepath', '"%:p"'],
\ 'stdin': 1
\ }
endfunction
80 changes: 80 additions & 0 deletions home/.SpaceVim.d/init.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
#=============================================================================
# basic.toml --- basic configuration example for SpaceVim
# Copyright (c) 2016-2017 Wang Shidong & Contributors
# Author: Wang Shidong < wsdjeg at 163.com >
# URL: https://spacevim.org
# License: GPLv3
#=============================================================================

# 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"
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_inactive_separator = "bar"
buffer_index_type = 4
windows_index_type = 3
enable_tabline_filetype_icon = false
enable_statusline_mode = false
statusline_unicode_symbols = false
# Enable vim compatible mode, avoid changing origin vim key bindings
vimcompatible = true
# load my bootstrap functions
bootstrap_before = "myspacevim#before"
bootstrap_after = "myspacevim#after"

# 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

[[layers]]
name = 'denite'

[[layers]]
name = "git"
git-plugin = "fugitive"

[[layers]]
name = "github"

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

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

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

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

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

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

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

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

[[layers]]
name = "VersionControl"
Loading

0 comments on commit ab4e4c9

Please sign in to comment.