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

Fix julia support (#2063)

* Fix julia support

* Unmerge plugins

* Fix julia layer
This commit is contained in:
Wang Shidong 2018-08-21 21:35:41 +08:00 committed by GitHub
parent 0e1aa1a831
commit 9b58158194
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 8 deletions

View File

@ -17,10 +17,10 @@ function! SpaceVim#layers#core#plugins() abort
call add(plugins, ['Shougo/vimproc.vim', {'build' : [(executable('gmake') ? 'gmake' : 'make')]}])
endif
call add(plugins, ['rhysd/clever-f.vim'])
call add(plugins, ['scrooloose/nerdcommenter', { 'loadconf' : 1}])
call add(plugins, ['rhysd/clever-f.vim', {'merged' : 0}])
call add(plugins, ['scrooloose/nerdcommenter', { 'loadconf' : 1, 'merged' : 0}])
call add(plugins, ['andymass/vim-matchup'])
call add(plugins, ['andymass/vim-matchup', {'merged' : 0}])
call add(plugins, ['morhetz/gruvbox', {'loadconf' : 1, 'merged' : 0}])
call add(plugins, ['tyru/open-browser.vim', {
\'on_cmd' : ['OpenBrowserSmartSearch', 'OpenBrowser',

View File

@ -25,8 +25,22 @@ endfunction
function! SpaceVim#layers#lang#julia#config() abort
" registe code runner commmand for julia
call SpaceVim#plugins#runner#reg_runner('julia', 'julia %s')
call SpaceVim#mapping#space#regesit_lang_mappings('julia', function('s:language_specified_mappings'))
" registe REPL command and key bindings for julia
call SpaceVim#plugins#repl#reg('julia', 'julia')
let g:latex_to_unicode_auto = 1
let g:latex_to_unicode_tab = 1
runtime macros/matchit.vim
" julia
let g:default_julia_version = '0.7'
endfunction
function! s:language_specified_mappings() abort
call SpaceVim#mapping#space#langSPC('nmap', ['l','r'],
\ 'call SpaceVim#plugins#runner#open()',
\ 'execute current file', 1)
let g:_spacevim_mappings_space.l.s = {'name' : '+Send'}
call SpaceVim#mapping#space#langSPC('nmap', ['l','s', 'i'],
\ 'call SpaceVim#plugins#repl#start("julia")',
@ -40,11 +54,8 @@ function! SpaceVim#layers#lang#julia#config() abort
call SpaceVim#mapping#space#langSPC('nmap', ['l','s', 's'],
\ 'call SpaceVim#plugins#repl#send("selection")',
\ 'send selection and keep code buffer focused', 1)
let g:latex_to_unicode_tab = 0
" julia
let g:default_julia_version = '0.6'
call SpaceVim#mapping#space#langSPC('nnoremap', ['l', 't'],
\ 'call LaTeXtoUnicode#Toggle()', 'toggle latex to unicode', 1)
if SpaceVim#layers#lsp#check_filetype('julia')
nnoremap <silent><buffer> K :call SpaceVim#lsp#show_doc()<CR>
call SpaceVim#mapping#space#langSPC('nnoremap', ['l', 'd'],