Files
DCGOS/home/tui/nixvim/opts.nix
2025-07-22 12:18:15 +08:00

45 lines
1018 B
Nix

{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;
};
};
}