helm-ls icon indicating copy to clipboard operation
helm-ls copied to clipboard

Possible to make it work with CoC (neovim) ?

Open metal3d opened this issue 10 months ago • 1 comments

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 avatar Apr 10 '24 21:04 metal3d

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?

metal3d avatar Apr 10 '24 21:04 metal3d

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

qvalentin avatar May 01 '24 12:05 qvalentin