nixos/modules/home/shell/neovim.nix

26 lines
422 B
Nix

{
lib,
config,
pkgs,
...
}: let
cfg = config.myConfig.shell.neovim;
in {
options.myConfig.shell.neovim = {
enable = lib.mkEnableOption "neovim";
};
config = lib.mkIf cfg.enable {
programs.neovim = {
enable = true;
defaultEditor = true;
plugins = with pkgs.vimPlugins; [
lazy-nvim
];
extraLuaConfig = ''
vim.opt.nobackup = true
'';
};
};
}