mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-09 15:30:04 +08:00
Merge pull request #972 from sei40kr/feature/haskell-runner
Added Haskell runner
This commit is contained in:
commit
b277bcc8a1
@ -9,8 +9,18 @@ endfunction
|
|||||||
function! SpaceVim#layers#lang#haskell#config() abort
|
function! SpaceVim#layers#lang#haskell#config() abort
|
||||||
let g:haskellmode_completion_ghc = 0
|
let g:haskellmode_completion_ghc = 0
|
||||||
|
|
||||||
|
call SpaceVim#plugins#runner#reg_runner('haskell', ['ghc -v0 --make %s -o #TEMP#', '#TEMP#'])
|
||||||
|
call SpaceVim#mapping#space#regesit_lang_mappings('haskell', funcref('s:language_specified_mappings'))
|
||||||
|
|
||||||
augroup SpaceVim_lang_haskell
|
augroup SpaceVim_lang_haskell
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd FileType haskell setlocal omnifunc=necoghc#omnifunc
|
autocmd FileType haskell setlocal omnifunc=necoghc#omnifunc
|
||||||
augroup END
|
augroup END
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
function! SpaceVim#layers#lang#c#config() abort
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! s:language_specified_mappings() abort
|
||||||
|
call SpaceVim#mapping#space#langSPC('nmap', ['l', 'r'], 'call SpaceVim#plugins#runner#open()', 'execute current file', 1)
|
||||||
|
endfunction
|
||||||
|
Loading…
Reference in New Issue
Block a user