Replaced toggleterm with nvterm
This commit is contained in:
@@ -42,7 +42,7 @@ opt.updatetime = 50
|
|||||||
|
|
||||||
-- windows
|
-- windows
|
||||||
if vim.fn.has("win32") == 1 then
|
if vim.fn.has("win32") == 1 then
|
||||||
o.shell = "pwsh"
|
o.shell = "pwsh -nologo"
|
||||||
o.shellcmdflag =
|
o.shellcmdflag =
|
||||||
"-NoLogo -NoProfile -ExecutionPolicy RemoteSigned -Command [Console]::InputEncoding=[Console]::OutputEncoding=[System.Text.Encoding]::UTF8;"
|
"-NoLogo -NoProfile -ExecutionPolicy RemoteSigned -Command [Console]::InputEncoding=[Console]::OutputEncoding=[System.Text.Encoding]::UTF8;"
|
||||||
o.shellredir = "2>&1 | Out-File -Encoding UTF8 %s; exit $LastExitCode"
|
o.shellredir = "2>&1 | Out-File -Encoding UTF8 %s; exit $LastExitCode"
|
||||||
|
|||||||
35
lua/taken/plugins/nvterm.lua
Normal file
35
lua/taken/plugins/nvterm.lua
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
return {
|
||||||
|
"NvChad/nvterm",
|
||||||
|
keys = {
|
||||||
|
{
|
||||||
|
"<A-t>",
|
||||||
|
function()
|
||||||
|
require("nvterm.terminal").toggle("float")
|
||||||
|
end,
|
||||||
|
desc = "Open float terminal",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<A-T>",
|
||||||
|
function()
|
||||||
|
require("nvterm.terminal").toggle("horizontal")
|
||||||
|
end,
|
||||||
|
desc = "Open hortizontal terminal",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
local nvterm = require("nvterm")
|
||||||
|
|
||||||
|
nvterm.setup({
|
||||||
|
terminals = {
|
||||||
|
type_opts = {
|
||||||
|
float = {
|
||||||
|
row = 0.1,
|
||||||
|
col = 0.1,
|
||||||
|
width = 0.8,
|
||||||
|
height = 0.8,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
}
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
return {
|
return {
|
||||||
"akinsho/toggleterm.nvim",
|
"akinsho/toggleterm.nvim",
|
||||||
|
enabled = false,
|
||||||
version = "*",
|
version = "*",
|
||||||
cmd = "ToggleTerm",
|
cmd = "ToggleTerm",
|
||||||
keys = {
|
keys = {
|
||||||
|
|||||||
Reference in New Issue
Block a user