Skip to content

Commit

Permalink
feat(toggleterm.nvim): use powershell for Windows (#519)
Browse files Browse the repository at this point in the history
  • Loading branch information
linrongbin16 authored Mar 8, 2024
1 parent 9a5b7c0 commit f0865ae
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lua/configs/akinsho/toggleterm-nvim/config.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
local constants = require("builtin.utils.constants")
local layout = require("builtin.utils.layout")

local shell = vim.o.shell
if constants.os.is_windows then
shell = vim.fn.executable("pwsh") > 0 and "pwsh" or "powershell"
end

require("toggleterm").setup({
direction = "float",
float_opts = {
Expand All @@ -13,4 +18,5 @@ require("toggleterm").setup({
end,
winblend = constants.ui.winblend,
},
shell = shell,
})

0 comments on commit f0865ae

Please sign in to comment.