mirror of
https://github.com/srid/nixos-config.git
synced 2026-02-03 19:48:24 +08:00
24 lines
542 B
Nix
24 lines
542 B
Nix
{ pkgs, ... }:
|
|
{
|
|
programs.helix = {
|
|
enable = true;
|
|
defaultEditor = true;
|
|
extraPackages = with pkgs; [
|
|
marksman
|
|
];
|
|
settings = {
|
|
theme = "snazzy";
|
|
editor.true-color = true;
|
|
keys.insert.j.j = "normal_mode";
|
|
# Shortcut to save file, in any mode.
|
|
keys.insert."C-s" = [ ":write" "normal_mode" ];
|
|
keys.normal."C-s" = ":write";
|
|
|
|
editor.lsp = {
|
|
display-messages = true;
|
|
display-inlay-hints = true;
|
|
display-signature-help-docs = true;
|
|
};
|
|
};
|
|
};
|
|
}
|