Closed utrumo closed 5 years ago
this is not a plugin for coc. it's language service.
Or you can Plug 'iamcco/diagnostic-languageserver', { 'do': 'yarn install & yarn build' }
use the vim-plug to clone and compile it then use absolute path to setup coc.
Or you can
Plug 'iamcco/diagnostic-languageserver', { 'do': 'yarn install & yarn build' }
use the vim-plug to clone and compile it then use absolute path to setup coc.
I have got an error:
Post-update hook for diagnostic-languageserver ... Exit status: 127
remove and use Plug 'iamcco/diagnostic-languageserver', { 'do': 'yarn install' }
Such way does not work too:)
Command "diagnostic-languageserver" of LS "sls" not found in $PATH
use the vim-plug to clone and compile it then use absolute path to setup coc.
use absolute path
use the vim-plug to clone and compile it then use absolute path to setup coc.
use absolute path
Could you give me an example of a command?
coc-tsserver coc-tsserver was established at me by this command and perfectly works:
Plug 'neoclide/coc-tsserver', {'do': 'yarn install --frozen-lockfile'}
{
"languageserver": {
"dls": {
"command": "diagnostic-languageserver",
"args": ["--stdio"],
"filetypes": [ "sh", "email" ], // filetypes that you want to enable this lsp
"initializationOptions": {
"linters": {
...
},
"filetypes": {
...
}
}
}
}
}
change diagnostic-languageserver
to path/to/diagnostic-languageserver/bin/index.js
this is not an coc extension therefor you can't install it like other coc extensions.
At me earned with a full absolute path:
"command": "/home/user/.vim/plugged/diagnostic-languageserver/bin/index.js"
There is some opportunity to specify a relative way for example from coc plugin? Something like
"command": "../../diagnostic-languageserver/bin/index.js"
?
I have send pr to fix ~/xxx
extend so you can use ~/.vim/plugged/diagnostic-languageserver/bin/index.js
to setup coc.
I have send pr to fix
~/xxx
extend so you can use~/.vim/plugged/diagnostic-languageserver/bin/index.js
to setup coc.
It became so much better. thanks! :)
I have create https://github.com/iamcco/coc-diagnostic coc extension therefor you can install it like normal coc extension
Great! I tried, it works! So much more conveniently. I think, it is necessary to specify in documentation that settings by default do not work in itself and it is required to specify in a coc-settings.json something on it seems:
{
"diagnostic-languageserver.filetypes": {
"php": "phpcs"
}
}
Other coc plugins may be installed by vim-plug. How can i install diagnostic-languageserver by vim-plug too?