fixes to nvim and alacritty

This commit is contained in:
Noah Masur 2022-06-19 09:34:17 -04:00
parent baa20e4dbb
commit 4f1e948843
4 changed files with 22 additions and 26 deletions

View File

@ -1,10 +1,23 @@
{ config, ... }: { { config, pkgs, lib, ... }: {
home-manager.users.${config.user}.programs.alacritty.settings.key_bindings = # MacOS-specific settings for Alacritty
[{ home-manager.users.${config.user} = {
key = "F"; programs.alacritty.settings = {
mods = "Super"; font.size = lib.mkForce 18.0;
action = "ToggleSimpleFullscreen"; shell.program = "${pkgs.fish}/bin/fish";
}]; key_bindings = [
{
key = "F";
mods = "Super";
action = "ToggleSimpleFullscreen";
}
{
key = "L";
mods = "Super";
chars = "\\x1F";
}
];
};
};
} }

View File

@ -17,25 +17,6 @@
(pkgs.nerdfonts.override { fonts = [ "FiraCode" ]; }) (pkgs.nerdfonts.override { fonts = [ "FiraCode" ]; })
]; ];
programs.alacritty.settings = {
shell.program = "${pkgs.fish}/bin/fish";
keybindings = [
{
key = "F";
mods = "Super";
action = "ToggleSimpleFullscreen";
}
{
key = "L";
mods = "Super";
chars = "\\x1F";
}
];
};
}; };
#fonts.fonts = with pkgs;
# [ (nerdfonts.override { fonts = [ "Victor Mono" ]; }) ];
} }

View File

@ -4,6 +4,7 @@
use({ use({
"nvim-telescope/telescope.nvim", "nvim-telescope/telescope.nvim",
branch = "master",
requires = { "nvim-lua/plenary.nvim" }, requires = { "nvim-lua/plenary.nvim" },
config = function() config = function()
-- Telescope: quit instantly with escape -- Telescope: quit instantly with escape

View File

@ -57,6 +57,7 @@
}; };
}; };
interactiveShellInit = '' interactiveShellInit = ''
fish_vi_key_bindings
bind yy fish_clipboard_copy bind yy fish_clipboard_copy
bind Y fish_clipboard_copy bind Y fish_clipboard_copy
bind -M visual y fish_clipboard_copy bind -M visual y fish_clipboard_copy