refactor: removed uneeded env sets for vim

Switched way of setting default editor to using the `programs.vim.defaultEditor = true` method
This commit is contained in:
Nickiel12 2023-01-14 16:03:15 -08:00
parent bddf159ea6
commit b6039592e2
2 changed files with 1 additions and 4 deletions

View file

@ -1,7 +1,6 @@
{ config, pkgs, user, ... }:
let
editor = "vim";
moz_overlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz);
nixpkgs = import <nixpkgs> {
overlays = [ moz_overlay ];
@ -11,8 +10,6 @@ let
);
in
{
xdg.mimeApps.associations.added."text/plain" = "vim";
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
@ -76,7 +73,6 @@ in
];
sessionVariables = {
EDITOR = editor;
NIX_SHELL_PRESERVE_PROMPT = 1;
};
};

View file

@ -31,6 +31,7 @@ in
vim-javascript
];
defaultEditor = true;
extraConfig = builtins.readFile ../rsrcs/.vimrc;
};