0
0

More than 1 year has passed since last update.

vim-lsp-settings で typeprof を無効にするための設定

Posted at

vim-lsp の設定を vim-lsp-settings で設定させてもらっているのですが、
まだ何もインストールしていない状態ですでに typeprof が有効になっている判定になっていました。

vim-lsp
https://github.com/prabirshrestha/vim-lsp

vim-lsp-settings
https://github.com/mattn/vim-lsp-settings

実際 typeprof は install していないので、 ruby ファイルを vim で開いて
:LspStatus を実行すると、エラーが出てしまいます。

本来は solargraph を使いたいので、まずは :LspUninstallServer solargraph をして追加してみましたが、
typeprof が有効になってしまっているので、solagraph が認識されませんでした。

解決法

そこで、 typeprof を無効にするために、以下の設定を .vimrc に追加しました。

.vimrc
let g:lsp_settings = {
\  'typeprof': {'disabled': 1},
\}

dein を使っている場合は、dein.toml の方に書いてもいいと思います。

dein.toml
[[plugins]]
repo = 'shun/ddc-vim-lsp'
hook_add = '''
	let g:lsp_settings = {
	\  'typeprof': {'disabled': 1},
	\}
'''

この状態で ruby ファイルを開いて :LspStatus をすると、 solargraph が使えるようになっていました。

0
0
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0