nixos-config/configurations/profile/home/editor/neovim.nix

41 lines
930 B
Nix
Raw Normal View History

{ 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
{
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;
package = materusArg.unstable.neovim-unwrapped;
2023-10-08 11:42:08 +02:00
coc.enable = true;
coc.package = materusArg.unstable.vimPlugins.coc-nvim;
2023-10-08 11:42:08 +02:00
viAlias = true;
vimAlias = true;
vimdiffAlias = true;
defaultEditor = lib.mkDefault false;
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
'';
extraLuaConfig = ''
'';
2023-10-08 11:42:08 +02:00
extraPackages = with pkgs;[
];
2023-10-08 11:42:08 +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
};
};
}