mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-03 17:45:03 +02:00
plugins/helm: add recommended autocmd for proper LSP behavior
This commit is contained in:
parent
432af78ffd
commit
57068f532d
1 changed files with 17 additions and 0 deletions
|
@ -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 ];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue