Common/helix: use home-manager languages option
This commit is contained in:
parent
384ecd5712
commit
5d644f0959
1 changed files with 8 additions and 11 deletions
|
|
@ -25,17 +25,14 @@
|
|||
indent-guides.render = true;
|
||||
};
|
||||
};
|
||||
languages = {
|
||||
language = [
|
||||
{
|
||||
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