Skip to content

Commit

Permalink
fix: more precise nix shell detection
Browse files Browse the repository at this point in the history
  • Loading branch information
louib committed Nov 25, 2023
1 parent ae7d4ef commit 1b25a16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flakes/nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ local function configure_status_bar()
function()
local tools = ''

local nix_enabled = os.getenv('IN_NIX_SHELL') ~= ''
local nix_enabled = os.getenv('IN_NIX_SHELL') == 'impure'
if nix_enabled then
if string.len(tools) == 0 then
tools = 'nix'
Expand Down

0 comments on commit 1b25a16

Please sign in to comment.