-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.vim
32 lines (23 loc) · 1.04 KB
/
init.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
" Specify a directory for plugins
" - For Neovim: stdpath('data') . '/plugged'
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.config/nvim/plugged')
" Make sure you use single quotes
Plug 'autozimu/LanguageClient-neovim', {
\ 'branch': 'next',
\ 'do': 'bash install.sh',
\ }
" (Optional) Multi-entry selection UI.
Plug 'junegunn/fzf'
" Initialize plugin system
call plug#end()
au BufReadPost *.rsh set filetype=reach
au Filetype reach set syntax=javascript
let g:LanguageClient_serverCommands = {
\ 'reach': ['node', '~/.local/share/nvim/site/reach-ide/server/out/server.js', '--stdio']
\ }
let g:LanguageClient_loggingLevel = 'DEBUG'
let g:LanguageClient_loggingFile = expand('~/.local/share/nvim/site/reach-ide/reach-language-client.log')
let g:LanguageClient_serverStderr = expand('~/.local/share/nvim/site/reach-ide/reach-language-server.log')
nnoremap <silent> <F4> :call LanguageClient#textDocument_hover()<CR>
nnoremap <silent> <F3> :call LanguageClient#textDocument_codeAction()<CR>