This commit is contained in:
antoine 2026-03-22 09:48:53 +01:00
commit 6eae514dab
Signed by: antoine
GPG key ID: 9EB6BAADC51B6133
15 changed files with 500 additions and 0 deletions

28
plugins/options.nix Normal file
View file

@ -0,0 +1,28 @@
{lib, ...}: {
vim = {
globals.mapleader = ",";
lineNumberMode = "relNumber";
hideSearchHighlight = true;
searchCase = "smart";
undoFile.enable = true;
clipboard = {
enable = true;
registers = "unnamedplus";
};
luaConfigRC.options = lib.nvim.dag.entryAfter ["globalsScript"] ''
vim.opt.tabstop = 2
vim.opt.shiftwidth = 2
vim.opt.expandtab = true
vim.opt.autoindent = true
vim.opt.signcolumn = "yes"
vim.opt.splitright = true
vim.opt.splitbelow = true
vim.opt.laststatus = 3
vim.opt.sessionoptions = "curdir,folds,globals,help,tabpages,terminal,winsize"
vim.opt.timeoutlen = 300
'';
};
}