mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-22 12:49:32 -08:00
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:
parent
bddf159ea6
commit
b6039592e2
2 changed files with 1 additions and 4 deletions
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -31,6 +31,7 @@ in
|
|||
vim-javascript
|
||||
];
|
||||
|
||||
defaultEditor = true;
|
||||
extraConfig = builtins.readFile ../rsrcs/.vimrc;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue