mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-23 17:31:11 +01:00
news: add defaultEditor entry
Let users know about new variable being set. Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
parent
0cf525a5be
commit
39cb677ed9
1 changed files with 32 additions and 0 deletions
32
modules/misc/news/2025/12/2025-12-11_13-04-30.nix
Normal file
32
modules/misc/news/2025/12/2025-12-11_13-04-30.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
{ config, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
time = "2025-12-11T19:04:30+00:00";
|
||||||
|
condition =
|
||||||
|
let
|
||||||
|
helixEnabled = config.programs.helix.enable && config.programs.helix.defaultEditor;
|
||||||
|
kakouneEnabled = config.programs.kakoune.enable && config.programs.kakoune.defaultEditor;
|
||||||
|
neovimEnabled = config.programs.neovim.enable && config.programs.neovim.defaultEditor;
|
||||||
|
vimEnabled = config.programs.vim.enable && config.programs.vim.defaultEditor;
|
||||||
|
emacsEnabled = config.services.emacs.enable && config.services.emacs.defaultEditor;
|
||||||
|
in
|
||||||
|
helixEnabled || kakouneEnabled || neovimEnabled || vimEnabled || emacsEnabled;
|
||||||
|
message = ''
|
||||||
|
The 'defaultEditor' option now sets both {env}`EDITOR` and {env}`VISUAL`
|
||||||
|
environment variables.
|
||||||
|
|
||||||
|
Previously, only {env}`EDITOR` was set. The {env}`VISUAL` variable is now
|
||||||
|
also configured to point to the same editor, which is the expected behavior
|
||||||
|
for modern terminal editors.
|
||||||
|
|
||||||
|
This change affects the following modules:
|
||||||
|
- programs.helix
|
||||||
|
- programs.kakoune
|
||||||
|
- programs.neovim
|
||||||
|
- programs.vim
|
||||||
|
- services.emacs
|
||||||
|
|
||||||
|
No action is required. This change should improve compatibility with tools
|
||||||
|
that check {env}`VISUAL` before {env}`EDITOR`.
|
||||||
|
'';
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue