From 30073d82a57a4839f9687c9dbcde627c112b1839 Mon Sep 17 00:00:00 2001 From: pml68 Date: Mon, 18 Mar 2024 21:33:54 +0100 Subject: feat: autocompletion, keymaps and more --- lua/pml68/configs/toggleterm.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 lua/pml68/configs/toggleterm.lua (limited to 'lua/pml68/configs/toggleterm.lua') diff --git a/lua/pml68/configs/toggleterm.lua b/lua/pml68/configs/toggleterm.lua new file mode 100644 index 0000000..6bf4f14 --- /dev/null +++ b/lua/pml68/configs/toggleterm.lua @@ -0,0 +1,15 @@ +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}) -- cgit v1.2.3