2024-12-25 18:36:18 +04:00
|
|
|
{ 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;
|
2024-12-25 18:36:18 +04:00
|
|
|
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
|
|
|
};
|
2024-12-25 18:36: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
|
2023-07-10 02:20:43 +04:00
|
|
|
users.users.sako.packages = with pkgs; [
|
2024-12-25 18:36:18 +04:00
|
|
|
# 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
|
2024-12-25 18:36:18 +04:00
|
|
|
# lazygit
|
2023-07-09 02:15:18 +04:00
|
|
|
];
|
2024-12-25 18:36:18 +04:00
|
|
|
# home-manager.users.sako.xdg.configFile.nvim = {
|
|
|
|
# source = ../../../../config/nvim;
|
|
|
|
# recursive = true;
|
|
|
|
# };
|
2023-07-09 02:15:18 +04:00
|
|
|
};
|
|
|
|
}
|