Update README
This commit is contained in:
parent
1a25f9aa01
commit
d9dddd3dcf
3 changed files with 13 additions and 4 deletions
|
|
@ -48,7 +48,6 @@ Nim support for Neovim
|
||||||
- [ ] Autocompletion
|
- [ ] Autocompletion
|
||||||
- [x] Autocompletion with ycm
|
- [x] Autocompletion with ycm
|
||||||
- [ ] Auto complete modules
|
- [ ] Auto complete modules
|
||||||
- [ ] Snippet/documentation support after complete
|
|
||||||
|
|
||||||
- [ ] Debugging
|
- [ ] Debugging
|
||||||
- [ ] Commands
|
- [ ] Commands
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ let s:NimDebugger = {
|
||||||
|
|
||||||
function! s:NimDebugger.on_stdout(job, chunk)
|
function! s:NimDebugger.on_stdout(job, chunk)
|
||||||
for line in a:chunk
|
for line in a:chunk
|
||||||
|
echom line
|
||||||
" *** endb| reached edb.nim(4) wat ***
|
" *** endb| reached edb.nim(4) wat ***
|
||||||
" let matched = matchlist(line, "\\*\\*\\* endb\|\(.*\)$")
|
" let matched = matchlist(line, "\\*\\*\\* endb\|\(.*\)$")
|
||||||
let matched = matchlist(line, "")
|
let matched = matchlist(line, "")
|
||||||
|
|
@ -26,7 +27,14 @@ function! features#debugger#run()
|
||||||
echo "Debugger already running"
|
echo "Debugger already running"
|
||||||
else
|
else
|
||||||
" vnew
|
" vnew
|
||||||
let s:edb_terminal_job = jobstart(["nim", "c", "--colors:off", "--debugger:on", "-r", "edb.nim"], s:NimDebugger)
|
let s:edb_terminal_job = jobstart([
|
||||||
|
\ "nim",
|
||||||
|
\ "c",
|
||||||
|
\ "--colors:off",
|
||||||
|
\ "--debugger:native",
|
||||||
|
\ "--lineDir:on",
|
||||||
|
\ "--lineTrace:on",
|
||||||
|
\ "edb.nim"], s:NimDebugger)
|
||||||
" let s:edb_terminal_job = termopen("nim c --debugger:on -r edb.nim")
|
" let s:edb_terminal_job = termopen("nim c --debugger:on -r edb.nim")
|
||||||
" wincmd p
|
" wincmd p
|
||||||
endif
|
endif
|
||||||
|
|
@ -43,7 +51,9 @@ endfunction
|
||||||
function! s:SendCommand(cmd)
|
function! s:SendCommand(cmd)
|
||||||
if s:edb_terminal_job > 0
|
if s:edb_terminal_job > 0
|
||||||
call jobsend(s:edb_terminal_job, a:cmd . "\n")
|
call jobsend(s:edb_terminal_job, a:cmd . "\n")
|
||||||
" call jobsend(s:edb_terminal_job, "w\n")
|
call jobsend(s:edb_terminal_job, "w\n")
|
||||||
|
call jobsend(s:edb_terminal_job, "g\n")
|
||||||
|
call jobsend(s:edb_terminal_job, "l\n")
|
||||||
else
|
else
|
||||||
echom "Debugger not running"
|
echom "Debugger not running"
|
||||||
endif
|
endif
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ setlocal comments=s1:#[,mb:#,ex:]#,:#,:##
|
||||||
setlocal commentstring=#\ %s
|
setlocal commentstring=#\ %s
|
||||||
setlocal expandtab
|
setlocal expandtab
|
||||||
setlocal omnifunc=omni#nim
|
setlocal omnifunc=omni#nim
|
||||||
setlocal makeprg=nim\ c\ --verbosity:0\ --colors:off\ %
|
setlocal makeprg=nim\ c\ --compileOnly\ --verbosity:0\ --colors:off\ %
|
||||||
setlocal errorformat=
|
setlocal errorformat=
|
||||||
\%-GHint:\ %m,
|
\%-GHint:\ %m,
|
||||||
\%A%f(%l\\,\ %c)\ Hint:\ %m,
|
\%A%f(%l\\,\ %c)\ Hint:\ %m,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue