add \T to show type with implicits
This commit is contained in:
parent
964cebee49
commit
f088d05a14
1 changed files with 5 additions and 4 deletions
|
@ -118,12 +118,12 @@ function! IdrisReloadToLine(cline)
|
||||||
"return tc
|
"return tc
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! IdrisShowType()
|
function! IdrisShowType(imp)
|
||||||
w
|
w
|
||||||
let word = s:currentQueryObject()
|
let word = s:currentQueryObject()
|
||||||
let cline = line(".")
|
let cline = line(".")
|
||||||
let ccol = col(".")
|
let ccol = col(".")
|
||||||
let ty = s:IdrisCommand(":t", word)
|
let ty = s:IdrisCommand(a:imp ? ":ti" : ":t", word)
|
||||||
call IWrite(ty)
|
call IWrite(ty)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
@ -295,7 +295,8 @@ function! IdrisEval()
|
||||||
call IWrite(" = " . result)
|
call IWrite(" = " . result)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
nnoremap <buffer> <silent> <LocalLeader>t :call IdrisShowType()<ENTER>
|
nnoremap <buffer> <silent> <LocalLeader>t :call IdrisShowType(0)<ENTER>
|
||||||
|
nnoremap <buffer> <silent> <LocalLeader>T :call IdrisShowType(1)<ENTER>
|
||||||
nnoremap <buffer> <silent> <LocalLeader>r :call IdrisReload(0)<ENTER>
|
nnoremap <buffer> <silent> <LocalLeader>r :call IdrisReload(0)<ENTER>
|
||||||
nnoremap <buffer> <silent> <LocalLeader>c :call IdrisCaseSplit()<ENTER>
|
nnoremap <buffer> <silent> <LocalLeader>c :call IdrisCaseSplit()<ENTER>
|
||||||
nnoremap <buffer> <silent> <LocalLeader>a 0:call search(":")<ENTER>b:call IdrisAddClause(0)<ENTER>w
|
nnoremap <buffer> <silent> <LocalLeader>a 0:call search(":")<ENTER>b:call IdrisAddClause(0)<ENTER>w
|
||||||
|
|
Loading…
Reference in a new issue