This commit is contained in:
muon 2025-08-05 16:14:47 +00:00
parent dfb61b24a6
commit 286632be79
3 changed files with 12 additions and 15 deletions

View file

@ -1,14 +1,8 @@
{
pkgs,
lib,
config,
inputs,
...
}: {
{ pkgs, lib, config, inputs, ... }: {
options.mods.terminal.development.enable =
lib.mkEnableOption "enables cli editor";
imports = [inputs.nvf.homeManagerModules.default];
imports = [ inputs.nvf.homeManagerModules.default ];
config = lib.mkIf config.mods.terminal.development.enable {
home.packages = with pkgs; [
@ -42,18 +36,18 @@
settings = {
keys.normal = {
"esc" = ["collapse_selection" "keep_primary_selection"];
"esc" = [ "collapse_selection" "keep_primary_selection" ];
"Z" = {
"Q" = ":quit!";
"Z" = ":write-quit!";
};
"V" = ["select_mode" "extend_to_line_bounds"];
"V" = [ "select_mode" "extend_to_line_bounds" ];
};
editor = {
line-number = "relative";
completion-replace = true;
bufferline = "always";
rulers = [80];
rulers = [ 80 ];
soft-wrap.enable = true;
indent-guides.render = true;
cursor-shape = {
@ -82,18 +76,18 @@
}
{
name = "glsl";
language-servers = ["glsl"];
language-servers = [ "glsl" ];
}
{
name = "wgsl";
language-servers = ["wgsl"];
language-servers = [ "wgsl" ];
}
{
name = "python";
auto-format = true;
formatter = {
command = "${pkgs.black}/bin/black";
args = ["-" "--quiet" "--line-length=79"];
args = [ "-" "--quiet" "--line-length=79" ];
};
}
];
@ -123,6 +117,7 @@
rust.enable = true;
rust.crates.enable = true;
python.enable = true;
python.format.type = "ruff";
clang.enable = true;
};
@ -145,7 +140,7 @@
todo-comments.enable = true;
};
spellcheck = {enable = true;};
spellcheck = { enable = true; };
binds = {
whichKey.enable = true;