Add neovim, enrich user packages and nvim config

This commit is contained in:
Scott Scoble 2026-05-12 20:15:41 -07:00
parent 8155b9b64c
commit a8c504c39f
2 changed files with 36 additions and 0 deletions

View file

@ -73,6 +73,32 @@
'';
};
# === Neovim minimal config ===
home.file.".config/nvim/init.lua" = {
text = ''
vim.opt.number = true
vim.opt.relativenumber = true
vim.opt.expandtab = true
vim.opt.shiftwidth = 2
vim.opt.tabstop = 2
vim.opt.smartindent = true
vim.opt.wrap = false
vim.opt.swapfile = false
vim.opt.backup = false
vim.opt.undodir = os.getenv("HOME") .. "/.vim/undodir"
vim.opt.undofile = true
vim.opt.hlsearch = false
vim.opt.incsearch = true
vim.opt.termguicolors = true
vim.opt.scrolloff = 8
vim.opt.signcolumn = "yes"
vim.opt.isfname:append("@-@")
vim.opt.updatetime = 50
vim.opt.colorcolumn = "100"
vim.g.mapleader = " "
'';
};
# === Vault directory placeholder ===
home.file."vault/.gitkeep" = { text = ""; };

View file

@ -22,6 +22,7 @@
tree
tmux
unzip
neovim
# SSH essentials
openssh
@ -101,6 +102,15 @@
description = "Scott Scoble";
extraGroups = [ "networkmanager" "wheel" "docker" ];
shell = pkgs.zsh;
packages = with pkgs; [
neovim
tmux
ripgrep
fd
bat
eza
delta
];
};
# === Locale ===