Remove nano, it's bs

This commit is contained in:
ItsDrike 2024-03-24 12:26:11 +01:00
parent 1e2a2c0222
commit df7d101411
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
3 changed files with 2 additions and 55 deletions

View file

@ -3,8 +3,8 @@ _: {
./hardware ./hardware
./boot ./boot
./services ./services
./programs
./nix ./nix
./programs.nix
./system.nix ./system.nix
./network.nix ./network.nix
./localisation.nix ./localisation.nix

View file

@ -1,8 +1,4 @@
{ pkgs, lib, ... }: { { pkgs, ... }: {
imports = [
./nano.nix
];
# Basic list of must-have packages for all systems # Basic list of must-have packages for all systems
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
vim vim

View file

@ -1,49 +0,0 @@
{ pkgs, ... }: {
programs.nano = {
# enabled by default anyway, we can keep it in case my neovim config breaks
enable = true;
nanorc = ''
include ${pkgs.nanorc}/share/*.nanorc # extended syntax highlighting
# Options
# https://github.com/davidhcefx/Modern-Nano-Keybindings
set tabsize 4
set tabstospaces
set linenumbers
set numbercolor yellow,normal
set indicator # side-bar for indicating cur position
set smarthome # `Home` jumps to line start first
set afterends # `Ctrl+Right` move to word ends instead of word starts
set wordchars "_" # recognize '_' as part of a word
set zap # delete selected text as a whole
set historylog # remember search history
set multibuffer # read files into multibuffer instead of insert
set mouse # enable mouse support
bind M-R redo main
bind ^C copy main
bind ^X cut main
bind ^V paste main
bind ^K zap main
bind ^H chopwordleft all
bind ^Q exit all
bind ^Z suspend main
bind M-/ comment main
bind ^Space complete main
bind M-C location main
bind ^E wherewas all
bind M-E findprevious all
bind ^R replace main
bind ^B pageup all # vim-like support
bind ^F pagedown all
bind ^G firstline all
bind M-G lastline all
bind M-1 help all # fix ^G been used
bind Sh-M-C constantshow main # fix M-C, M-F and M-b been used
bind Sh-M-F formatter main
bind Sh-M-B linter main
'';
};
}