Files
neovim_conf/lua/plugins/toggleterm.lua
T
2023-02-11 21:51:58 +08:00

15 lines
327 B
Lua

local shell = vim.o.shell
if vim.loop.os_uname().sysname == 'Windows_NT' then
shell = 'powershell'
end
return { {
"akinsho/toggleterm.nvim",
cmd = "ToggleTerm",
keys = { { "<C-\\>", "<Cmd>ToggleTerm<CR>", desc = "ToggleTerm" } },
opts = {
open_mapping = [[<C-\>]],
shell = shell
},
} }