nixos-config

NixOS configs for my systems
Log | Files | Refs

commit 0a96ce3a4680f2150c1bb81cb26c4825ea987490
parent 17e59be53cf9b20148d7e6e0ac6c97d1d0d3dfc6
Author: vin <git@vineetk.net>
Date:   Sat, 10 Aug 2024 18:01:48 -0400

use neovim instead of vim

I didn't know why vim was bypassing autocmd nix filetypes and not
letting me use 8-wide hardtabs. I really dislike 2-spaced "tabs".

Diffstat:
Mhome.nix | 25++++++++++++++-----------
Mhosts/lappy/default.nix | 2+-
2 files changed, 15 insertions(+), 12 deletions(-)

diff --git a/home.nix b/home.nix @@ -52,6 +52,7 @@ }; shellAliases = { + e = "$EDITOR"; gc = "git"; ls = "ls -F"; mpv = "mpv --save-position-on-quit"; @@ -170,24 +171,26 @@ ]; }; - vim = { + neovim = { enable = true; defaultEditor = true; extraConfig = '' + " my sensible defaults. + " I use mouse in terminal for primary select and paste, not what (n)vim wants + " 8-wide hardtabs I prefer visually and doesn't feel cramped + set background=dark + set backupdir=/tmp/nvim + set noexpandtab + set ignorecase + set mouse= + set relativenumber + set shiftwidth=8 + set tabstop=8 + " stop annoying cursor movement on escape from insert " this seems to be default behaviour from vis inoremap <silent> <Esc> <C-O>:stopinsert<CR> ''; - settings = { - background = "dark"; - backupdir = [ "/tmp" ]; - expandtab = false; - ignorecase = true; - mouse = null; - relativenumber = true; - shiftwidth = 8; - tabstop = 8; - }; }; yt-dlp = { diff --git a/hosts/lappy/default.nix b/hosts/lappy/default.nix @@ -84,7 +84,7 @@ # $ nix search wget environment.systemPackages = with pkgs; [ git - vim + neovim vis # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. wget ];