sneeuwvlok/_modules/home/desktop/editors/nvim.nix
2025-07-28 14:34:09 +02:00

38 lines
791 B
Nix

{ config, lib, user, ... }:
let
inherit (lib.modules) mkIf;
cfg = config.modules.${user}.desktop.editors.nvim;
in
{
options.modules.${user}.desktop.editors.nvim = let
inherit (lib.options) mkEnableOption;
in {
enable = mkEnableOption "neo-vim (nixvim)";
};
config = mkIf cfg.enable {
modules.desktop.editors.nvim.enable = true;
programs.nvf = {
enable = true;
settings = {
vim = {
statusline.lualine.enable = true;
telescope.enable = true;
autocomplete.nvim-cmp.enable = true;
lsp.enable = true;
languages = {
enableTreesitter = true;
nix.enable = true;
ts.enable = true;
rust.enable = true;
};
};
};
};
};
}