소스 검색

refactor: default shell (#3867)

opalmay 2 년 전
부모
커밋
de2bd1c3d8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lua/lvim/core/terminal.lua

+ 1 - 1
lua/lvim/core/terminal.lua

@@ -117,7 +117,7 @@ M.init = function()
     term_opts.size = term_opts.size or lvim.builtin.terminal.terminals_defaults[term_opts.direction .. "_size"]
     -- size is calculated dynamically as a percentage of the current buffer
     term_opts.size = get_dynamic_terminal_size(term_opts.direction, term_opts.size)
-    term_opts.cmd = term_opts.cmd or lvim.builtin.terminal.shell
+    term_opts.cmd = term_opts.cmd or lvim.builtin.terminal.shell or vim.o.shell
     -- desc is used for the keymap description
     term_opts.desc = term_opts.desc
     if term_opts.desc == nil then