Use vim at room. Leader-c to create new tab.
parent
bdcad8505f
commit
55cf0d6b3d
|
@ -32,29 +32,27 @@
|
||||||
systemPackages = with pkgs; [
|
systemPackages = with pkgs; [
|
||||||
gcc
|
gcc
|
||||||
git
|
git
|
||||||
];
|
((vim_configurable.override {}).customize {
|
||||||
variables = {
|
name = "vim";
|
||||||
EDITOR = "nvim";
|
vimrcConfig.customRC = ''
|
||||||
};
|
set nocompatible
|
||||||
};
|
syntax on
|
||||||
|
|
||||||
hardware.bluetooth.enable = true;
|
|
||||||
|
|
||||||
programs.neovim = {
|
|
||||||
enable = true;
|
|
||||||
configure = {
|
|
||||||
customRC = ''
|
|
||||||
set colorcolumn=80,100
|
set colorcolumn=80,100
|
||||||
set expandtab " Spaces instead of tabs.
|
set expandtab " Spaces instead of tabs.
|
||||||
set list " Show hidden characters.
|
set list " Show hidden characters.
|
||||||
set shiftwidth=2 " # of spaces to use for each (auto)indent.
|
set shiftwidth=2 " # of spaces to use for each (auto)indent.
|
||||||
set tabstop=2 " # of spaces a <Tab> in the file counts for.
|
set tabstop=2 " # of spaces a <Tab> in the file counts for.
|
||||||
'';
|
'';
|
||||||
|
})
|
||||||
|
];
|
||||||
|
variables = {
|
||||||
|
EDITOR = "vim";
|
||||||
};
|
};
|
||||||
viAlias = true;
|
|
||||||
vimAlias = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
hardware.bluetooth.enable = true;
|
||||||
|
|
||||||
networking.hostName = "nixos";
|
networking.hostName = "nixos";
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
|
|
||||||
|
|
|
@ -77,6 +77,7 @@ in
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
programs.neovim = {
|
programs.neovim = {
|
||||||
|
defaultEditor = true;
|
||||||
plugins = map (p:
|
plugins = map (p:
|
||||||
if builtins.hasAttr "config" p then {
|
if builtins.hasAttr "config" p then {
|
||||||
inherit (p) plugin;
|
inherit (p) plugin;
|
||||||
|
|
|
@ -52,6 +52,11 @@ return {
|
||||||
mods = 'LEADER',
|
mods = 'LEADER',
|
||||||
action = wezterm.action.ActivateTabRelative(-1),
|
action = wezterm.action.ActivateTabRelative(-1),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
key = 'c',
|
||||||
|
mods = 'LEADER',
|
||||||
|
action = wezterm.action.SpawnTab 'CurrentPaneDomain',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
-- Disallow hiding the terminal from the keyboard.
|
-- Disallow hiding the terminal from the keyboard.
|
||||||
key = 'm',
|
key = 'm',
|
||||||
|
|
Loading…
Reference in New Issue