From 5f23e65f160e164e7ca2eea7e3bb3a831ebc3d74 Mon Sep 17 00:00:00 2001 From: baabelfish Date: Thu, 3 Mar 2016 22:02:19 +0200 Subject: [PATCH] Update outline and readme Fixes #31 Disable autocmd for outline while updating it --- README.md | 15 ++++++++------- ftplugin/nim.vim | 3 ++- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index f3463ae..d9815f8 100644 --- a/README.md +++ b/README.md @@ -6,25 +6,26 @@ Nim support for vim and advanced support for neovim. Still in heavy development. - Asynchronous - Syntax highlighting - Normal vim highlight - - More intelligent highlight with nimsuggest - - Semantic highlighting for specified nim symbol kinds + - More intelligent highlight with nimsuggest (**experimental**) + - Semantic highlighting for specified nim symbol kinds (**experimental**) - Indentation - Error checking - Using ``:make`` - - Neomake + - [Neomake](https://github.com/benekastah/neomake) - Project navigation with nimsuggest - Jump to definition - Get symbol information (type, module, file, signature, etc...) - Find usages (file and/or project) - Autocompletion - - Nimsuggest omnicompletion - - Autocomplete module names + - Nimsuggest omnicompletion (still *sync*, deoplete/ycm incoming...) + - Autocomplete module names (**experimental**) - IDE like stuff - - Outline listing all symbols in the module (like tagbar) - Jump to documentation in web - Refactoring - Rename symbol in file or project -- REPL + - Outline listing all symbols in the module (like tagbar) + - Jump to outline symbol with unite (**experimental**) +- REPL (**experimental**) - Open repl - Send current buffer - Send selection diff --git a/ftplugin/nim.vim b/ftplugin/nim.vim index dfbef2d..ca45d2a 100644 --- a/ftplugin/nim.vim +++ b/ftplugin/nim.vim @@ -23,6 +23,7 @@ command! -buffer -nargs=* -complete=buffer NimRenameSymbol :call features command! -buffer -nargs=* -complete=buffer NimRenameSymbolProject :call features#rename#run(1) command! -buffer -nargs=* -complete=buffer NimDebug :call features#debug#run() command! -buffer -nargs=* -complete=buffer NimOutline :call features#outline#run(0) +command! -buffer -nargs=* -complete=buffer NimOutlineUpdate :call features#outline#run(1) command! -buffer -nargs=* -complete=buffer NimEdb :call features#debugger#run() command! -buffer -nargs=* -complete=buffer NimEdbStop :call features#debugger#stop() @@ -61,7 +62,7 @@ augroup END augroup nvim_nim_outline " autocmd! CursorHold,BufWritePost,FileWritePost *.nim call features#outline#run(1) - autocmd! CursorHold,FileWritePost *.nim call features#outline#run(1) + autocmd! FileWritePost *.nim call features#outline#run(1) autocmd! VimResized,WinEnter * call features#outline#render() augroup END