1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-04-14 15:19:12 +08:00

Update remark config

This commit is contained in:
wsdjeg 2017-09-03 22:58:24 +00:00
parent 6600e2a6d7
commit f3c114951c
2 changed files with 13 additions and 0 deletions

8
.remarkrc.js Normal file
View File

@ -0,0 +1,8 @@
module.exports = {
settings: {
stringLength: require('wcwidth'),
},
plugins: [
require('remark-frontmatter'),
]
};

View File

@ -26,6 +26,7 @@ function! SpaceVim#layers#lang#markdown#config() abort
if executable('firefox')
let g:mkdp_path_to_chrome= get(g:, 'mkdp_path_to_chrome', 'firefox')
endif
let remarkrc = s:generate_remarkrc()
let g:neoformat_enabled_markdown = ['remark']
let g:neoformat_markdown_remark = {
\ 'exe': 'remark',
@ -42,3 +43,7 @@ function! s:mappings() abort
call SpaceVim#mapping#space#langSPC('nmap', ['l','ft'], "Tabularize /|", 'Format table under cursor', 1)
call SpaceVim#mapping#space#langSPC('nmap', ['l','p'], "MarkdownPreview", 'Real-time markdown preview', 1)
endfunction
function! s:generate_remarkrc() abort
return ''
endfunction