该程序支持智能跳转到定义、自动完成、持续重命名等功能。
Language server using engine allowing for smart jump-to-definitions, understanding metaprogramming definitions, refactoring and more.
Doing as MSc thesis for Institute of Computer Science, University of Wrocław.
Create a language server for ruby, which can be used across different code editors, like Vim, Emacs or Atom. Focus on understanding of the code in order to provide best functionalities of "go-to definition", autocompletion and refactorings. The idea is to infer information about variables (i.e. their "types"), without requiring developer to write any annotations, just like IDEs do that - through static analysis.
Currently language server supports:
Information about "type" of an expression
Works in following cases:
super keyword -> jump to the definition of method from the parent class (doesn't respect include / prepend yet)orbacle gem.orbaclerun -d indexIt will show you how long does it take to index your project, i.e. how long do you have to wait after editor start to have language server functional underneath.
Using vim-plug:
Plug 'autozimu/LanguageClient-neovim', { 'branch': 'next', 'do': 'bash install.sh' }
let g:LanguageClient_serverCommands = {
\ 'ruby': ['orbaclerun', 'file-server'],
\ }
nnoremap lj :call LanguageClient_textDocument_definition()
nnoremap T :call LanguageClient_textDocument_hover()
" timeout has to be bigger than time needed to index your project
let g:LanguageClient_waitOutputTimeout = 240Currently I do not accept contributions, as this is part of MSc thesis. However features ideas and bug reports are accepted.
If you have found a bug, feel free to create an issue. However, because of the fact that I'm focusing now more on the features required to MSc, support for other developers are lower priority for me.
暂无开放 Issues,或尚未同步最近议题。