We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3bc644 commit 58b99c2Copy full SHA for 58b99c2
lua/rust-tools/utils/utils.lua
@@ -7,6 +7,7 @@ end
7
8
function M.is_nushell()
9
local shell = vim.loop.os_getenv("SHELL")
10
+ if shell == nil then return false end
11
local nu = "nu"
12
-- Check if $SHELL ends in "nu"
13
return shell:sub(-string.len(nu)) == nu
0 commit comments