neoclide / coc-yaml

Yaml language server extension for coc.nvim
MIT License
248 stars 23 forks source link

No file not starting language server #62

Closed mosheavni closed 2 years ago

mosheavni commented 2 years ago

Hi, When opening a kubernetes manifest, immediately it's being recognized, the language server kicks in, and the schema is loaded: image

However, when I'm opening a "nofile", when running this command for example:

kubectl get deployment hello-world -oyaml | vim

The filetype is detected, however the language server doesn't start. image

:CocCommand document.echoFiletype
yaml

I tried :CocRestart, I tried setting the filetype again setf yaml Nothing helped. It works when I open a file with .yaml extension, or a plain text file and then I set the filetype, It also works when I open a blank file, paste yaml content and set the filetype. For some weird reason, if I open vim from pipe, the languageserver doesn't start. Ideas?

mosheavni commented 2 years ago

probably because I set :set buftype=nofile nevermind :)