2023-07-09 02:15:18 +04:00
|
|
|
{ outputs, options, config, lib, pkgs, ...}:
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
cfg = config.modules.dev.editors.nvim;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.modules.dev.editors.nvim = {
|
|
|
|
enable = mkEnableOption false;
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
# because yes
|
2023-07-10 02:20:43 +04:00
|
|
|
users.users.sako.packages = with pkgs; [
|
2023-07-09 02:15:18 +04:00
|
|
|
neovim
|
2023-07-10 02:20:43 +04:00
|
|
|
# lsp
|
|
|
|
clang-tools
|
2023-07-10 17:36:02 +04:00
|
|
|
cmake-language-server
|
2023-07-10 02:20:43 +04:00
|
|
|
# lint
|
|
|
|
cpplint
|
2023-07-09 02:15:18 +04:00
|
|
|
];
|
|
|
|
home-manager.users.sako.xdg.configFile.nvim = {
|
|
|
|
source = ../../../../config/nvim;
|
|
|
|
recursive = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|