We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c7be70 commit 023dc23Copy full SHA for 023dc23
lua/keymap/tool.lua
@@ -244,7 +244,7 @@ for _, mode in pairs(modes) do
244
["<A-d>"] = { pos = "float", id = "FloatTerm" },
245
}) do
246
mappings.plugins[string.format("%s|%s", mode, key)] = map_callback(function()
247
- if vim.fn.executable("direnv") == 1 then
+ if vim.fn.executable("direnv") == 1 and vim.loop.fs_stat(vim.uv.cwd() .. "/.envrc") ~= nil then
248
opts = vim.tbl_extend("force", opts, { cmd = "direnv allow" })
249
end
250
require("nvchad.term").toggle(opts)
0 commit comments