Outline
This commit is contained in:
parent
2efef18008
commit
dc2615545a
9 changed files with 269 additions and 51 deletions
|
|
@ -1,6 +1,6 @@
|
|||
" if exists("b:loaded")
|
||||
" finish
|
||||
" endif
|
||||
if exists("b:loaded")
|
||||
finish
|
||||
endif
|
||||
let b:loaded = 1
|
||||
|
||||
setlocal formatoptions-=t formatoptions+=l
|
||||
|
|
@ -11,31 +11,30 @@ setlocal omnifunc=omni#nim
|
|||
|
||||
command! NimDefinition :call features#definition#run()
|
||||
command! NimInfo :call features#info#run()
|
||||
command! NimWeb :call features#info#web()
|
||||
command! NimUsages :call features#usages#run(0)
|
||||
command! NimUsagesProject :call features#usages#run(1)
|
||||
command! NimRenameSymbol :call features#rename#run(0)
|
||||
command! NimRenameSymbolProject :call features#rename#run(1)
|
||||
command! NimDebug :call features#debug#run()
|
||||
command! NimOutline :call features#outline#run()
|
||||
command! NimOutline :call features#outline#run(0)
|
||||
|
||||
command! NimEdb :call features#debugger#run()
|
||||
command! NimEdbStop :call features#debugger#stop()
|
||||
command! NimEdbContinue :call features#debugger#continue()
|
||||
command! NimEdbStepInto :call features#debugger#stepinto()
|
||||
command! NimEdbStepOver :call features#debugger#stepover()
|
||||
command! NimEdbSkipCurrent :call features#debugger#skipcurrent()
|
||||
command! NimEdbIgonore :call features#debugger#ignore()
|
||||
command! NimEdbContinue :call features#debugger#continue()
|
||||
command! NimEdbToggleBP :call features#debugger#togglebp()
|
||||
command! NimEdb :call features#debugger#run()
|
||||
command! NimEdbStop :call features#debugger#stop()
|
||||
command! NimEdbContinue :call features#debugger#continue()
|
||||
command! NimEdbStepInto :call features#debugger#stepinto()
|
||||
command! NimEdbStepOver :call features#debugger#stepover()
|
||||
command! NimEdbSkipCurrent :call features#debugger#skipcurrent()
|
||||
command! NimEdbIgonore :call features#debugger#ignore()
|
||||
command! NimEdbContinue :call features#debugger#continue()
|
||||
command! NimEdbToggleBP :call features#debugger#togglebp()
|
||||
|
||||
nnoremap <buffer> <c-]> :NimDefinition<cr>
|
||||
nnoremap <buffer> gd :NimDefinition<cr>
|
||||
nnoremap <buffer> gt :NimInfo<cr>
|
||||
nnoremap <buffer> gT :NimInfoVerbose<cr>
|
||||
|
||||
autocmd! CursorHold,InsertLeave,TextChanged,InsertEnter *.nim call highlighter#guard()
|
||||
autocmd! BufReadPost,BufWritePost *.nim call highlighter#guard()
|
||||
" autocmd! BufWinEnter quickfix let g:qfix_win = bufnr("$")
|
||||
" autocmd! BufWinLeave * if exists("g:qfix_win") && expand("<abuf>") == g:qfix_win | call features#usages#clear_matches() | unlet! g:qfix_win | endif
|
||||
nnoremap <buffer> gd :NimDefinition<cr>
|
||||
nnoremap <buffer> gt :NimInfo<cr>
|
||||
nnoremap <buffer> gT :NimWeb<cr>
|
||||
|
||||
autocmd! BufReadPost,BufWritePost,CursorHold,InsertLeave,TextChanged,InsertEnter *.nim call highlighter#guard()
|
||||
autocmd! BufWinEnter,BufWritePost,FileWritePost *.nim call features#outline#run(1)
|
||||
autocmd! VimResized,WinEnter * call features#outline#render()
|
||||
call highlighter#guard()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue