前提
neovim, dein.vim, coc.nvimにて環境構築を行っていた。
実現したいこと
dein.vim, Python3, Nodejsはインストール済でバージョンも最新。
:checkhealthをみてもこれと言ったエラーはない。
pythonやhtml, css, java, cといった言語の補完の環境を作成したい。
発生している問題・エラーメッセージ
テストファイルであるtest.pyを
nvim test.py
で開き、:CocInstall coc-pyrightを実行、補完機能がインストールされる。
その後は補完が効くが、一度 :wqなどして抜けると次は補完が効かなくなる。
その他、 CocInstall coc-tsserverなどしても一度目でも補完が効かない。
Pythonのみ一回目だけ補完が効き、その他の言語は一回も補完が効いてくれない。
該当のソースコード
dein.toml
1[[plugins]] 2repo = 'neoclide/coc.nvim' 3rev = 'release' 4merged = 0
init.vim
1 83 "dein Scripts----------------------------- 2 84 if &compatible 3 85 set nocompatible " Be iMproved 4 86 endif 5 87 6 88 " Required: 7 89 set runtimepath+=MYHOME/.cache/dein/repos/github.com/Shougo/dein.vim 8 90 9 91 " Required: 10 92 call dein#begin('MYHOME/.cache/dein') 11 93 12 94 " Let dein manage dein 13 95 " Required: 14 96 call dein#add('MYHOME/.cache/dein/repos/github.com/Shougo/dein.vim') 15 97 16 98 " Add or remove your plugins here like this: 17 99 "call dein#add('Shougo/neosnippet.vim') 18100 "call dein#add('Shougo/neosnippet-snippets') 19101 20102 " Required: 21103 call dein#end() 22104 23105 let s:toml_dir=expand('~/.config/nvim') 24106 let g:rc_dir = expand('~/.config/nvim') 25107 26108 call dein#load_toml(s:toml_dir . '/dein.toml', {'lazy': 0}) 27109 call dein#load_toml(s:toml_dir . '/dein_lazy.toml', {'lazy': 1}) 28110 29111 " Required: 30112 filetype plugin indent on 31113 syntax enable 32114 33115 if !has('nvim') 34116 call dein#add('roxma/nvim-yarp') 35117 call dein#add('roxma/vim-hug-neovim-rpc') 36118 endif 37119 38120 " If you want to install not installed plugins on startup. 39121 if dein#check_install() 40122 call dein#install() 41123 endif 42124 43125 "End dein Scripts-------------------------
coc
1 1 { 2 2 "coc.preferences.formatOnSaveFiletypes": [ 3 3 "python", 4 4 "go", 5 5 "dart", 6 6 "cs", 7 7 "java", 8 8 "html", 9 9 "javascript", 10 10 "css", 11 11 "vue", 12 12 "svelte", 13 13 "javascriptreact", 14 14 "typescriptreact", 15 15 "json" 16 16 ] 17 17 }
あなたの回答
tips
プレビュー