flake/home/applications/neovim/default.nix

26 lines
565 B
Nix
Raw Normal View History

2024-02-19 20:15:22 +00:00
{
pkgs,
inputs,
...
}: {
home.packages = [
inputs.neovim.packages.${pkgs.stdenv.hostPlatform.system}.default
#pkgs.lunarvim
# stupid way to make {vi,vim}Alias work without a module
(pkgs.writeShellScriptBin "vi" ''nvim "$@"'')
(pkgs.writeShellScriptBin "vim" ''nvim "$@"'')
];
2024-02-29 19:17:14 +00:00
home.sessionVariables."EDITOR" = "nvim";
2024-02-19 20:15:22 +00:00
# TODO: couldn't make it work
#programs.neovim = {
# enable = true;
# viAlias = true;
# vimAlias = true;
#
# package = inputs.neovim.packages.${pkgs.stdenv.hostPlatform.system}.default;
#};
2023-11-05 09:21:37 +00:00
}