From 731adb8c12223987dafe5160c52393bf4ad6d05b Mon Sep 17 00:00:00 2001 From: Henry Denny Date: Mon, 26 Feb 2024 13:12:15 +0000 Subject: [PATCH] Remove ToggleTerm. --- lua/custom/plugins/terminal.lua | 36 --------------------------------- 1 file changed, 36 deletions(-) delete mode 100644 lua/custom/plugins/terminal.lua diff --git a/lua/custom/plugins/terminal.lua b/lua/custom/plugins/terminal.lua deleted file mode 100644 index 5b99f784..00000000 --- a/lua/custom/plugins/terminal.lua +++ /dev/null @@ -1,36 +0,0 @@ -return { - 'akinsho/toggleterm.nvim', - version = "*", - config = function () - require("toggleterm").setup({ - open_mapping = [[]], - shade_terminals = false, - direction = "horizontal", - terminal_mappings = true, - }) - - local Terminal = require('toggleterm.terminal').Terminal - local lazygit = Terminal:new({ - cmd = "lazygit", - hidden = true, - direction = "float", - float_opts = { - border = "single", - } - }) - - function _lazygit_toggle() - lazygit:toggle() - end - - vim.api.nvim_set_keymap("n", "gg", "lua _lazygit_toggle()", {noremap = true, silent = true}) - - vim.cmd.tnoremap("", [[]]) - vim.cmd.tnoremap("", [[]]) - -- vim.keymap.set('t', 'jk', [[]], opts) - -- vim.keymap.set('t', '', [[wincmd h]], opts) - -- vim.keymap.set('t', '', [[wincmd j]], opts) - -- vim.keymap.set('t', '', [[wincmd k]], opts) - -- vim.keymap.set('t', '', [[wincmd l]], opts) - end -}