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

36 lines
680 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;
coc.enable = true;
viAlias = true;
vimAlias = true;
vimdiffAlias = 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-03-11 16:19:31 +01:00
plugins = with pkgs.vimPlugins;[
syntastic
2023-10-08 11:42:08 +02:00
2024-03-11 16:19:31 +01:00
vim-fugitive
vim-airline
vim-nix
nvim-fzf
nvim-treesitter.withAllGrammars
];
2023-10-08 11:42:08 +02:00
};
};
}