Created
October 3, 2018 00:23
-
-
Save kashewnuts/9c9999b3d926c78859bb425256d9d389 to your computer and use it in GitHub Desktop.
vim-lspを試そうとしたがomnifuncが設定されないのか動かない
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let s:plug_dir = '~/.cache/plugged' | |
call plug#begin(s:plug_dir) " {{{ | |
Plug 'prabirshrestha/async.vim' | |
Plug 'prabirshrestha/vim-lsp' | |
call plug#end() " }}} | |
" --- vim-lsp --- {{{ | |
if executable('pyls') | |
" pip install python-language-server | |
autocmd User lsp_setup call lsp#register_server({ | |
\ 'name': 'pyls', | |
\ 'cmd': {server_info->['pyls']}, | |
\ 'whitelist': ['python'], | |
\ }) | |
endif | |
" }}} |
Author
kashewnuts
commented
Oct 3, 2018
LspDefinition
は動いたのでvim-lspのインストールに失敗してるわけではない。
autocmd FileType python setlocal omnifunc=lsp#complete
で解決していた。 https://github.com/prabirshrestha/vim-lsp/blob/master/doc/vim-lsp.txt#L352-L363 に書いてあった
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment