2021-11-08 13:52:09 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
2022-03-30 10:55:57 +02:00
|
|
|
with lib;
|
2022-03-23 12:41:04 +01:00
|
|
|
let cfg = config.modules.editors;
|
|
|
|
in {
|
2022-03-30 10:55:57 +02:00
|
|
|
options.modules.editors = {
|
|
|
|
vim = mkOption {
|
|
|
|
default = true;
|
|
|
|
type = types.bool;
|
|
|
|
example = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
config = mkIf cfg.vim {
|
2022-03-23 12:41:04 +01:00
|
|
|
home-manager.users.moritz.programs.neovim = {
|
|
|
|
enable = true;
|
|
|
|
vimAlias = true;
|
|
|
|
vimdiffAlias = true;
|
2022-03-30 10:55:57 +02:00
|
|
|
plugins = with pkgs.vimPlugins; [
|
|
|
|
(nvim-treesitter.withPlugins (p: pkgs.tree-sitter.allGrammars))
|
|
|
|
coc-nvim
|
|
|
|
dracula-vim
|
|
|
|
];
|
|
|
|
withNodeJs = true;
|
|
|
|
withPython3 = true;
|
2022-03-23 12:41:04 +01:00
|
|
|
};
|
2021-11-08 13:52:09 +01:00
|
|
|
};
|
|
|
|
}
|