helix: fix extend search
This commit is contained in:
parent
c6f9e14fa8
commit
6bb17bd0e6
|
@ -1,6 +1,6 @@
|
||||||
{ config, pkgs, lib, font, ... }:
|
{ pkgs, lib, ... }:
|
||||||
let
|
let
|
||||||
inherit (pkgs.uservars) key theme accent font editor;
|
inherit (pkgs.uservars) theme editor;
|
||||||
inherit (theme) color;
|
inherit (theme) color;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
@ -49,8 +49,8 @@ in
|
||||||
i = "extend_line_up";
|
i = "extend_line_up";
|
||||||
o = "extend_char_right";
|
o = "extend_char_right";
|
||||||
# search
|
# search
|
||||||
l = "search_next";
|
l = "extend_search_next";
|
||||||
L = "search_prev";
|
L = "extend_search_prev";
|
||||||
# edits
|
# edits
|
||||||
s = "insert_mode";
|
s = "insert_mode";
|
||||||
# open newline
|
# open newline
|
||||||
|
@ -70,17 +70,17 @@ in
|
||||||
{ auto-format = true; formatter = { command = "nixpkgs-fmt"; }; name = "nix"; }
|
{ auto-format = true; formatter = { command = "nixpkgs-fmt"; }; name = "nix"; }
|
||||||
{ auto-format = true; name = "rust"; }
|
{ auto-format = true; name = "rust"; }
|
||||||
];
|
];
|
||||||
themes =
|
themes = {
|
||||||
{
|
|
||||||
my-theme = {
|
my-theme = {
|
||||||
"inherits" = "gruvbox";
|
"inherits" = "gruvbox";
|
||||||
"ui.menu" = "none";
|
"ui.menu" = "none";
|
||||||
"ui.background" = { bg = "none"; };
|
"ui.background" = { bg = "none"; };
|
||||||
"ui.virtual.whitespace" = color.nontxt;
|
"ui.virtual.whitespace" = color.nontxt;
|
||||||
|
"ui.cursorline" = { bg = color.bg_dark; };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
home.packages = with pkgs; [ pkgs.unstable.helix ];
|
home.packages = with pkgs; [ unstable.helix ];
|
||||||
home.sessionVariables = lib.mkIf (editor == "helix") {
|
home.sessionVariables = lib.mkIf (editor == "helix") {
|
||||||
EDITOR = "hx";
|
EDITOR = "hx";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue