nixos/modules/dev/editors/nvim/default.nix

43 lines
938 B
Nix
Raw Normal View History

{ inputs, options, config, lib, pkgs, ... }:
2024-08-01 16:24:09 +04:00
let
2023-08-11 00:30:24 +04:00
cfg = config.modules.dev.editors.nvim;
configModule = {
# custom options
# options = { ... };
2024-12-26 01:53:44 +04:00
config = {
vim = {
theme.enable = true;
lazy.plugins = with pkgs.vimPlugins; {
vim-wakatime = {
package = vim-wakatime;
lazy = false;
};
};
};
};
2023-07-09 02:15:18 +04:00
};
customNeovim = inputs.nvf.lib.neovimConfiguration {
inherit pkgs;
modules = [ configModule ];
};
in {
options.modules.dev.editors.nvim = { enable = lib.mkEnableOption false; };
2023-07-09 02:15:18 +04:00
2024-08-01 16:24:09 +04:00
config = lib.mkIf cfg.enable {
2023-08-11 00:30:24 +04:00
# because yes
users.users.sako.packages = with pkgs; [
# neovim
customNeovim.neovim
2023-08-11 00:30:24 +04:00
# flakes
2023-08-06 12:53:37 +04:00
direnv
2023-08-11 00:30:24 +04:00
# vscode like git
# lazygit
2023-07-09 02:15:18 +04:00
];
# home-manager.users.sako.xdg.configFile.nvim = {
# source = ../../../../config/nvim;
# recursive = true;
# };
2023-07-09 02:15:18 +04:00
};
}