Skip to content

Commit

Permalink
plugins/helm: add recommended autocmd for proper LSP behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage committed Nov 10, 2024
1 parent 432af78 commit 57068f5
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions plugins/by-name/helm/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,22 @@ helpers.vim-plugin.mkVimPlugin {
originalName = "vim-helm";
package = "vim-helm";

description = ''
To ensure that `helm_ls` (and not `yamlls`) is used on helm files, add the following autocmd:
```nix
autoCmd = [
{
event = "FileType";
pattern = "helm";
command = "LspRestart";
}
];
```
See [nix-community/nixvim#989](https://github.com/nix-community/nixvim/issues/989#issuecomment-2333728503)
for details.
'';

maintainers = [ lib.maintainers.GaetanLepage ];
}

0 comments on commit 57068f5

Please sign in to comment.