diff options
| author | pml68 <tutorialmester@gmail.com> | 2024-03-18 21:33:54 +0100 |
|---|---|---|
| committer | pml68 <tutorialmester@gmail.com> | 2024-03-18 21:33:54 +0100 |
| commit | 30073d82a57a4839f9687c9dbcde627c112b1839 (patch) | |
| tree | efe4ff05512462fc94edeea7c1f5996149cfa96c /lua/pml68/configs/toggleterm.lua | |
| parent | feat: missed the Float part (diff) | |
| download | nvim-30073d82a57a4839f9687c9dbcde627c112b1839.tar.gz | |
feat: autocompletion, keymaps and more
Diffstat (limited to 'lua/pml68/configs/toggleterm.lua')
| -rw-r--r-- | lua/pml68/configs/toggleterm.lua | 15 |
1 files changed, 15 insertions, 0 deletions
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", "<leader>g", "<cmd> lua _lazygit_toggle() <CR>", {noremap = true, silent = true}) |
