Initial commit

This commit is contained in:
2025-08-20 18:24:02 +03:00
commit 2dec42d487
116 changed files with 6591 additions and 0 deletions

44
modules/global/nvim.nix Normal file
View File

@@ -0,0 +1,44 @@
{ config, ...}: {
globals.hm = {
programs.neovim = {
enable = true;
defaultEditor = true;
viAlias = true;
vimAlias = true;
extraLuaConfig = ''
local bind = vim.keymap.set
local opt = vim.opt
local g = vim.g
local o = vim.o
local cmd = vim.cmd
o.expandtab = true
o.smarttab = true
o.cindent = true
o.autoindent = true
o.ignorecase = true
o.smartcase = true
o.backup = false
o.writebackup = false
o.undofile = true
o.swapfile = false
opt.relativenumber = true
opt.number = true
opt.tabstop = 2
opt.shiftwidth = 2
opt.mouse = "a"
opt.termguicolors = true
opt.clipboard = "unnamedplus"
'';
home.sessionVariables = {
# EDITOR = lib.mkForce lib.getExe pkgs.neovim;
MANPAGER = "${config.hm.home.sessionVariables.EDITOR} +Man!";
};
};
};
}