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:
parent
6600e2a6d7
commit
f3c114951c
8
.remarkrc.js
Normal file
8
.remarkrc.js
Normal file
@ -0,0 +1,8 @@
|
||||
module.exports = {
|
||||
settings: {
|
||||
stringLength: require('wcwidth'),
|
||||
},
|
||||
plugins: [
|
||||
require('remark-frontmatter'),
|
||||
]
|
||||
};
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user