2023-10-27 14:01:54 +02:00
|
|
|
{ config, lib, pkgs, materusArg, ... }:
|
2023-10-08 11:42:08 +02:00
|
|
|
let
|
2024-03-11 16:19:31 +01:00
|
|
|
cfg = config.materus.profile.editor.neovim;
|
2023-10-08 11:42:08 +02:00
|
|
|
in
|
|
|
|
{
|
2023-10-27 14:01:54 +02:00
|
|
|
options.materus.profile.editor.neovim.enable = materusArg.pkgs.lib.mkBoolOpt config.materus.profile.enableTerminalExtra "Enable neovim with materus cfg";
|
2023-10-08 11:42:08 +02:00
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
programs.neovim = {
|
|
|
|
enable = true;
|
2024-10-15 21:22:16 +02:00
|
|
|
package = materusArg.unstable.neovim-unwrapped;
|
2023-10-08 11:42:08 +02:00
|
|
|
coc.enable = true;
|
2024-10-15 21:22:16 +02:00
|
|
|
coc.package = materusArg.unstable.vimPlugins.coc-nvim;
|
2023-10-08 11:42:08 +02:00
|
|
|
viAlias = true;
|
|
|
|
vimAlias = true;
|
|
|
|
vimdiffAlias = true;
|
2024-10-15 21:22:16 +02:00
|
|
|
defaultEditor = true;
|
2023-10-25 15:34:43 +02:00
|
|
|
|
2023-10-08 11:42:08 +02:00
|
|
|
|
|
|
|
extraConfig = ''
|
2024-03-11 16:19:31 +01:00
|
|
|
set number
|
2023-10-08 11:42:08 +02:00
|
|
|
'';
|
2024-10-15 21:22:16 +02:00
|
|
|
extraLuaConfig = ''
|
|
|
|
'';
|
2023-10-08 11:42:08 +02:00
|
|
|
|
2024-10-15 21:22:16 +02:00
|
|
|
extraPackages = with pkgs;[
|
|
|
|
];
|
2023-10-08 11:42:08 +02:00
|
|
|
|
2024-10-15 21:22:16 +02:00
|
|
|
plugins = with materusArg.unstable.vimPlugins;[
|
2024-03-11 16:19:31 +01:00
|
|
|
syntastic
|
|
|
|
vim-fugitive
|
|
|
|
vim-airline
|
|
|
|
vim-nix
|
|
|
|
nvim-fzf
|
|
|
|
nvim-treesitter.withAllGrammars
|
|
|
|
|
|
|
|
];
|
2023-10-08 11:42:08 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|