From dbe6be0af436200a4da52b16306e893c69106f5e Mon Sep 17 00:00:00 2001 From: Christopher Date: Sat, 17 Sep 2022 12:24:27 +0200 Subject: [PATCH] toggleterm usage --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 25c2bf5..7b7d47e 100644 --- a/README.md +++ b/README.md @@ -42,3 +42,20 @@ Then, just run `lazyfivem` in any terminal. * **ENTER** - Starts the selected when you're in the sidebar view, and executes the command when you're in the command exec view. ![image](https://user-images.githubusercontent.com/59088889/189553625-afa0926d-a16d-4be3-8023-fb20f4e8f95c.png) + + +## Toggleterm +```lua +local lazyfivem = Terminal:new({ + cmd = "lazyfivem", + direction = "float", + count = 15, + float = { + border = "double", + } +}) + +function _lazyfivem_toggle() + lazyfivem:toggle() +end +```