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:
Geoffrey Frogeye 2024-06-02 22:30:18 +02:00
parent 3479927d32
commit 48bf80f1c0
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
6 changed files with 14 additions and 101 deletions

View file

@ -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 = {

View file

@ -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