From d2ded00f063e6ba1f6e9f42aeda14cb684ddd875 Mon Sep 17 00:00:00 2001 From: pml68 Date: Thu, 2 May 2024 17:32:34 +0200 Subject: feat: remove lazygit term, get **best possible** startup time down to 16ms --- lua/pml68/configs/toggleterm.lua | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'lua/pml68/configs/toggleterm.lua') diff --git a/lua/pml68/configs/toggleterm.lua b/lua/pml68/configs/toggleterm.lua index e2681b5..4f5ca6e 100644 --- a/lua/pml68/configs/toggleterm.lua +++ b/lua/pml68/configs/toggleterm.lua @@ -1,18 +1,3 @@ -local Terminal = require('toggleterm.terminal').Terminal -local lazygit = Terminal:new({ - cmd = "lazygit", - hidden = true, - direction = "float", - float_opts = { - border = "double", - }, -}) - -function _lazygit_toggle() - lazygit:toggle() -end - -vim.keymap.set("n", "g", " lua _lazygit_toggle() ", { noremap = true, silent = true }) function _G.set_terminal_keymaps() local opts = { buffer = 0 } vim.keymap.set('t', '', [[]], opts) -- cgit v1.2.3