neoclide / coc-yaml

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

Explicit prettier dependency #27

Closed onsails closed 4 years ago

onsails commented 4 years ago

Latest version of coc-yaml with new yaml-language-server crashes with Error: Cannot find module 'prettier'. Prettier is an optional dependency on yaml-language-server because of openshift internal reasons. But I suppose for coc-yaml prettier is not optional because it's used for code formatting.

It's important for NixOS ecosystem because node2nix which is widely used in nixpkgs for node packages doesn't build optional dependencies by default (and to fix that just for coc-yaml some not pretty hacks would be required).