From b6039592e2a9c3262060c97d60c758959dd4ddc1 Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Sat, 14 Jan 2023 16:03:15 -0800 Subject: [PATCH] refactor: removed uneeded env sets for vim Switched way of setting default editor to using the `programs.vim.defaultEditor = true` method --- hosts/home.nix | 4 ---- modules/vim.nix | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/hosts/home.nix b/hosts/home.nix index d94936d..0773cf3 100644 --- a/hosts/home.nix +++ b/hosts/home.nix @@ -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 { 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; }; }; diff --git a/modules/vim.nix b/modules/vim.nix index 14abeaf..eff415e 100644 --- a/modules/vim.nix +++ b/modules/vim.nix @@ -31,6 +31,7 @@ in vim-javascript ]; + defaultEditor = true; extraConfig = builtins.readFile ../rsrcs/.vimrc; };