akinsho / toggleterm.nvim

A neovim lua plugin to help easily manage multiple terminal windows
GNU General Public License v3.0
4.24k stars 170 forks source link

[question] Is there a way to make clear_env take effect by default #597

Closed fcying closed 1 month ago

fcying commented 1 month ago

Is there a way to make clear_env take effect by default? I tried configuring t.clear_env = true in on_create, but it didn't work for run ToggleTerm

on_create = function(t)
    t.clear_env = true
end,