Add neovim, enrich user packages and nvim config
This commit is contained in:
parent
8155b9b64c
commit
a8c504c39f
2 changed files with 36 additions and 0 deletions
|
|
@ -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 = ""; };
|
||||
|
||||
|
|
|
|||
|
|
@ -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 ===
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue