Breaking change: replace nvterm with UI term module

This commit is contained in:
siduck 2023-08-15 20:26:23 +05:30
parent 5644603144
commit 03ed1579c5
2 changed files with 34 additions and 64 deletions

View File

@ -281,67 +281,48 @@ M.telescope = {
},
}
M.nvterm = {
plugin = true,
t = {
-- toggle in terminal mode
["<A-i>"] = {
function()
require("nvterm.terminal").toggle "float"
end,
"Toggle floating term",
},
["<A-h>"] = {
function()
require("nvterm.terminal").toggle "horizontal"
end,
"Toggle horizontal term",
},
["<A-v>"] = {
function()
require("nvterm.terminal").toggle "vertical"
end,
"Toggle vertical term",
},
},
M.terminal = {
n = {
-- toggle in normal mode
["<A-i>"] = {
function()
require("nvterm.terminal").toggle "float"
end,
"Toggle floating term",
},
["<A-h>"] = {
function()
require("nvterm.terminal").toggle "horizontal"
end,
"Toggle horizontal term",
},
["<A-v>"] = {
function()
require("nvterm.terminal").toggle "vertical"
end,
"Toggle vertical term",
},
-- new
["<leader>h"] = {
function()
require("nvterm.terminal").new "horizontal"
require("nvchad.term").new { pos = "sp", size = 0.3 }
end,
"New horizontal term",
},
["<leader>v"] = {
function()
require("nvterm.terminal").new "vertical"
require("nvchad.term").new { pos = "vsp", size = 0.2 }
end,
"New vertical term",
},
["<A-v>"] = {
function()
require("nvchad.term").toggle { pos = "vsp", id = "vtoggleTerm" }
end,
"New vertical term",
},
["<A-h>"] = {
function()
require("nvchad.term").toggle { pos = "sp", id = "htoggleTerm", size = 0.3 }
end,
"New vertical term",
},
},
t = {
["<A-v>"] = {
function()
require("nvchad.term").toggle { pos = "vsp", id = "vtoggleTerm" }
end,
"New vertical term",
},
["<A-h>"] = {
function()
require("nvchad.term").toggle { pos = "sp", id = "htoggleTerm", size = 0.3 }
end,
"New vertical term",
},

View File

@ -14,21 +14,10 @@ local default_plugins = {
{
"NvChad/ui",
branch = "v2.0",
branch = "term",
lazy = false,
},
{
"NvChad/nvterm",
init = function()
require("core.utils").load_mappings "nvterm"
end,
config = function(_, opts)
require "base46.term"
require("nvterm").setup(opts)
end,
},
{
"NvChad/nvim-colorizer.lua",
init = function()