Files
nixos/modules/home-manager/helix.nix
2025-02-06 18:25:39 +01:00

48 lines
942 B
Nix

{
lib,
config,
...
}:
let
cfg = config.myHome.helix;
in
{
options = {
myHome.helix.enable = lib.mkEnableOption "enables helix";
};
config = lib.mkIf cfg.enable {
programs.helix = {
enable = true;
defaultEditor = true;
settings = {
editor = {
lsp = {
enable = true;
display-messages = true;
display-inlay-hints = true;
};
# [editor.inline-diagnostics]
# cursor-line = "warning"
};
# [[language]]
# name = "python"
# language-servers = ["pylsp"]
# [language-server.pylsp.config.pylsp]
# plugins.pyls_mypy.enabled = true
# plugins.pyls_mypy.live_mode = true
# [[language]]
# name = "rust"
# language-servers = ["rust-analyzer"]
# [language-server.rust-analyzer.config]
# check.command = "clippy"
};
};
};
}