Add jump to def test
- Fix global variable initialization - Remove broken shell escapes
This commit is contained in:
parent
66b4431f60
commit
17b22b6fc3
14 changed files with 97 additions and 40 deletions
|
|
@ -12,7 +12,6 @@ let s:NimDebugger = {
|
|||
|
||||
function! s:NimDebugger.on_stdout(job, chunk)
|
||||
for line in a:chunk
|
||||
echom line
|
||||
" *** endb| reached edb.nim(4) wat ***
|
||||
" let matched = matchlist(line, "\\*\\*\\* endb\|\(.*\)$")
|
||||
let matched = matchlist(line, "")
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ endfunction
|
|||
|
||||
|
||||
function! features#definition#run()
|
||||
call suggest#New("def", 0, 0, s:DefinitionImpl)
|
||||
call suggest#New("def", !g:nvim_nim_enable_async, 0, s:DefinitionImpl)
|
||||
endfunction
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -53,13 +53,13 @@ function! features#info#web()
|
|||
if modules#isGlobalImport(current_word)
|
||||
call util#open_module_doc(current_word, "")
|
||||
else
|
||||
call suggest#New("def", 0, 0, s:New(1))
|
||||
call suggest#New("def", !g:nvim_nim_enable_async, 0, s:New(1))
|
||||
endif
|
||||
endfunction
|
||||
|
||||
|
||||
function! features#info#run()
|
||||
call suggest#New("def", 0, 0, s:New(0))
|
||||
call suggest#New("def", !g:nvim_nim_enable_async, 0, s:New(0))
|
||||
endfunction
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -250,7 +250,7 @@ function! features#outline#run(isUpdating)
|
|||
if !a:isUpdating || s:IsOpen()
|
||||
" if s:BufferModified()
|
||||
let s:current_buffer = winnr()
|
||||
call suggest#New("outline", 0, 1, s:OutlineImpl)
|
||||
call suggest#New("outline", !g:nvim_nim_enable_async, 1, s:OutlineImpl)
|
||||
" else
|
||||
" call s:OutlineImpl.run(s:OutlineImpl.cache)
|
||||
" endif
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ endfunction
|
|||
|
||||
function! features#rename#run(inProject)
|
||||
let s:findInProject = a:inProject
|
||||
call suggest#New("use", 0, 1, s:RenameImpl)
|
||||
call suggest#New("use", !g:nvim_nim_enable_async, 1, s:RenameImpl)
|
||||
endfunction
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -46,14 +46,14 @@ endfunction
|
|||
|
||||
let s:UsagesDefinitionImpl = {}
|
||||
function! s:UsagesDefinitionImpl.run(data)
|
||||
call suggest#NewKnown("use", 0, 1, a:data.file, a:data.line, a:data.col, s:UsagesImpl)
|
||||
call suggest#NewKnown("use", !g:nvim_nim_enable_async, 1, a:data.file, a:data.line, a:data.col, s:UsagesImpl)
|
||||
endfunction
|
||||
|
||||
function! features#usages#run(findInProject)
|
||||
cclose
|
||||
call setqflist([])
|
||||
let s:findInProject = a:findInProject
|
||||
call suggest#New("def", 0, 1, s:UsagesDefinitionImpl)
|
||||
call suggest#New("def", !g:nvim_nim_enable_async, 1, s:UsagesDefinitionImpl)
|
||||
endfunction
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue