Common/helix: manually write languages.toml and configure nil for formatting
This commit is contained in:
parent
80eaacd3a3
commit
b27ddf6aad
1 changed files with 11 additions and 6 deletions
|
|
@ -22,12 +22,17 @@
|
|||
indent-guides.render = true;
|
||||
};
|
||||
};
|
||||
languages = [
|
||||
{
|
||||
name = "nix";
|
||||
formatter.command = "nixpkgs-fmt";
|
||||
}
|
||||
];
|
||||
};
|
||||
# The builtin languages options have issues
|
||||
# https://github.com/nix-community/home-manager/issues/3299
|
||||
xdg.configFile."helixLanguages" = {
|
||||
target = "helix/languages.toml";
|
||||
text = ''
|
||||
[language-server.nil]
|
||||
config.nil.formatting.command = [ "nixpkgs-fmt" ]
|
||||
[[language]]
|
||||
name = "nix"
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue