Init:start-nix

This commit is contained in:
dichgrem
2025-07-22 12:18:15 +08:00
parent 7ce7214a74
commit e57cdd246c
178 changed files with 22667 additions and 1 deletions

44
home/tui/nixvim/opts.nix Normal file
View File

@@ -0,0 +1,44 @@
{pkgs, ...}: {
programs.nixvim = {
opts = {
breakindent = true;
clipboard = {
providers = {
wl-copy = {
enable = true;
package = pkgs.wl-clipboard-rs;
};
};
register = "unnamedplus";
};
cmdheight = 2;
cursorline = true;
encoding = "utf-8";
expandtab = true;
fileencoding = "utf-8";
grepformat = "%f:%l:%c:%m";
grepprg = "rg --vimgrep";
hlsearch = true;
ignorecase = true;
inccommand = "split";
list = true;
listchars.__raw = "{ tab = '» ', trail = '·', nbsp = '' }";
mouse = "a";
number = true;
pumheight = 0;
scrolloff = 8;
shiftwidth = 2;
showmode = false;
signcolumn = "yes";
smartcase = true;
softtabstop = 2;
splitbelow = true;
splitright = true;
tabstop = 2;
termguicolors = true;
timeoutlen = 250;
undofile = true;
updatetime = 50;
};
};
}