nvim: move to services we do not specify a pkgset

This commit is contained in:
Kevin Baensch 2025-07-05 20:08:20 +02:00
parent 465a6b19d1
commit 11b98d8146
Signed by: derped
GPG key ID: C0F1D326C7626543
45 changed files with 38 additions and 37 deletions

View file

@ -1,42 +0,0 @@
{
lib,
config,
fn,
nvim-lazy,
...
}:
with lib;
{
imports =
[
nvim-lazy.nixosModules.nvim-lazy
]
++ (fn.lst {
path = (toString ./nvim);
fullPath = true;
});
programs.nvim-lazy = mkIf (elem "nvim" config.machine.pkgs) {
enable = true;
luaRcContent = # lua
''
vim.g.mapleader = " "
vim.o.tabstop = 2
vim.o.shiftwidth = 2
vim.o.expandtab = true
vim.o.ignorecase = true
vim.o.smartcase = true
vim.o.nrformats = alpha
vim.bo.softtabstop = 2
vim.wo.foldmethod = 'expr'
vim.wo.foldexpr = 'nvim_treesitter#foldexpr()'
vim.o.foldlevelstart = 99
vim.wo.number = true
vim.wo.relativenumber = true
vim.o.scrolloff = 20
'';
};
}