1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 06:10:05 +08:00

Merge pull request #972 from sei40kr/feature/haskell-runner

Added Haskell runner
This commit is contained in:
Wang Shidong 2017-11-07 17:30:17 -06:00 committed by GitHub
commit b277bcc8a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,8 +9,18 @@ endfunction
function! SpaceVim#layers#lang#haskell#config() abort
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
autocmd!
autocmd FileType haskell setlocal omnifunc=necoghc#omnifunc
augroup END
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