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:
parent
0e1aa1a831
commit
9b58158194
@ -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',
|
||||
|
@ -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'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user