mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-23 01:08:43 +02:00
modules/lsp/servers/vls: do not add filetype extension if not enabled
This commit is contained in:
parent
8eb5763bbb
commit
06261fc472
2 changed files with 32 additions and 1 deletions
|
@ -591,7 +591,9 @@ let
|
|||
example = false;
|
||||
};
|
||||
};
|
||||
extraConfig = cfg: { filetype.extension = mkIf cfg.autoSetFiletype { v = "vlang"; }; };
|
||||
extraConfig = cfg: {
|
||||
filetype.extension = mkIf (cfg.enable && cfg.autoSetFiletype) { v = "vlang"; };
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "vuels";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue