-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ilkka Poutanen
committed
Apr 5, 2020
1 parent
ee9a020
commit ab4e4c9
Showing
23 changed files
with
105 additions
and
2,423 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
7
home/.SpaceVim.d/autoload/neoformat/formatters/javascript.vim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
Oops, something went wrong.