24.05 Fixed terminal, vim, lix and stuff
Also "fixed" display link, but turned out that the display cable wasn't plugged in correctly anymore...
This commit is contained in:
parent
3479927d32
commit
48bf80f1c0
6 changed files with 14 additions and 101 deletions
|
@ -43,7 +43,7 @@ in
|
|||
}
|
||||
];
|
||||
};
|
||||
key_bindings = [
|
||||
keyboard.bindings = [
|
||||
{ mode = "~Search"; mods = "Alt|Control"; key = "Space"; action = "ToggleViMode"; }
|
||||
{ mode = "Vi|~Search"; mods = "Control"; key = "K"; action = "ScrollHalfPageUp"; }
|
||||
{ mode = "Vi|~Search"; mods = "Control"; key = "J"; action = "ScrollHalfPageDown"; }
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
traceroute
|
||||
|
||||
# nix
|
||||
nix
|
||||
lix
|
||||
|
||||
# Always on (graphical)
|
||||
] ++ lib.optionals config.frogeye.desktop.xorg [
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
enableZshIntegration = true;
|
||||
};
|
||||
nix = {
|
||||
package = lib.mkDefault pkgs.nixFlakes;
|
||||
package = lib.mkDefault pkgs.lix;
|
||||
settings = {
|
||||
experimental-features = [ "nix-command" "flakes" ];
|
||||
warn-dirty = false;
|
||||
|
|
|
@ -3,11 +3,11 @@
|
|||
config = {
|
||||
programs = {
|
||||
# https://www.reddit.com/r/neovim/comments/mbj8m5/how_to_setup_ctrlshiftkey_mappings_in_neovim_and/
|
||||
alacritty.settings.key_bindings = [
|
||||
{ key = "H"; mods = "Control|Shift"; chars = "\\x1b[72;5u"; }
|
||||
{ key = "L"; mods = "Control|Shift"; chars = "\\x1b[76;5u"; }
|
||||
alacritty.settings.keyboard.bindings = [
|
||||
{ key = "H"; mods = "Control|Shift"; chars = "\\u001b[72;5u"; }
|
||||
{ key = "L"; mods = "Control|Shift"; chars = "\\u001b[76;5u"; }
|
||||
] ++ (map
|
||||
(n: { key = "Key${builtins.toString n}"; mods = "Control"; chars = "\\x1b[${builtins.toString (48+n)};5u"; })
|
||||
(n: { key = "Key${builtins.toString n}"; mods = "Control"; chars = "\\u001b[${builtins.toString (48+n)};5u"; })
|
||||
(lib.lists.range 0 9));
|
||||
# Ctrl+<number> doesn't get interpreted, but Ctrl+Shift+<number> does, so let's use that
|
||||
nixvim = {
|
||||
|
|
|
@ -98,6 +98,12 @@
|
|||
ansible-vim
|
||||
# Doesn't generate snippets, but those are for UltiSnip anyways
|
||||
];
|
||||
extraConfigLuaPre = lib.mkBefore ''
|
||||
-- If terminal is detected to be light, background will be changed after base16 theme is applied.
|
||||
-- Setting manually early to prevent hightlights having weird colors.
|
||||
-- https://github.com/RRethy/base16-nvim/issues/77
|
||||
vim.opt.background = "${config.stylix.polarity}";
|
||||
'';
|
||||
extraConfigVim = ''
|
||||
" Avoid showing message extra message when using completion
|
||||
set shortmess+=c
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue