mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-20 10:35:08 +02:00
fix(terminal): don't set the shell by default (#3867)
* fix(terminal): set user's shell before calling setup * refactor: set `vim.o.shell` directly in `cmd` opts
This commit is contained in:
parent
f43cc8e20b
commit
732fd6fc2b
1 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ M.config = function()
|
|||
-- direction = 'vertical' | 'horizontal' | 'window' | 'float',
|
||||
direction = "float",
|
||||
close_on_exit = true, -- close the terminal window when the process exits
|
||||
shell = vim.o.shell, -- change the default shell
|
||||
shell = nil, -- change the default shell
|
||||
-- This field is only relevant if direction is set to 'float'
|
||||
float_opts = {
|
||||
-- The border key is *almost* the same as 'nvim_win_open'
|
||||
|
@ -82,7 +82,7 @@ M.init = function()
|
|||
local direction = exec[4] or lvim.builtin.terminal.direction
|
||||
|
||||
local opts = {
|
||||
cmd = exec[1] or lvim.builtin.terminal.shell,
|
||||
cmd = exec[1] or lvim.builtin.terminal.shell or vim.o.shell,
|
||||
keymap = exec[2],
|
||||
label = exec[3],
|
||||
-- NOTE: unable to consistently bind id/count <= 9, see #2146
|
||||
|
|
Loading…
Reference in a new issue