mrjosh / helm-ls

⎈ Language server for Helm ⎈
MIT License
239 stars 15 forks source link

Possible to make it work with CoC (neovim) ? #75

Closed metal3d closed 6 months ago

metal3d commented 7 months ago

Hello,

CoC is a very nice plugin that can use Langauge Servers (it works very well with Go, Python, TypeScript... and so on)

I try to make helm_ls working, but nothing seems to work.

Here is the configuration I added to CocConfig:

  "languageserver": {
    "helm": {
      "command": "helm_ls",
      "filetypes": ["yaml"]
    }
  },

I also tried:

  "languageserver": {
    "helm": {
      "command": "helm_ls",
      "argd": ["serve"],
      "filetypes": ["yaml"]
    }
  },

The server seems to be never used, never started, and I've got no diagnostic with helm files.

If someone can help...

metal3d commented 7 months ago

Ho!

Found:

  "languageserver": {
    "helm": {
      "command": "helm_ls",
      "args": ["serve"],
      "filetypes": ["yaml", "helm", "helmfile"],
      "rootPatterns": ["Chart.yaml"]
    }
  },

And it's OK. It's fantastic, I've got errors, documentation, ...

image

image

image

Maybe I can make a PR with the "how to neovim + CoC" in the README?

qvalentin commented 6 months ago

Fixed in https://github.com/mrjosh/helm-ls/pull/79