-
Notifications
You must be signed in to change notification settings - Fork 1
Use in neovim
Eddie Ash edited this page Mar 30, 2018
·
1 revision
Example: Neobundle 'autozimu/LanguageClient-neovim'
let g:LanguageClient_serverCommands = {
\ 'perl': ['slp.bin'],
\ }
" AutoStart Language Server
let g:LanguageClient_autoStart=1
autogroup FileType perl
" Smart Variable renaming
nnoremap <silent> <F2> :call LanguageClient_textDocument_rename()<CR>
"gq will now use the format your code properly.
set formatexpr=LanguageClient_textDocument_rangeFormatting()
" remaps = to gq, since equal program doesn't allow using a function
nnoremap = gq
endgroup END