We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey first of all thanks for the awesome plugin!
I usually have a vs-code style terminal docked at the bottom of my editor which is called by command
:FloatermNew --height=0.4 --width=1.0 --wintype=float --position=bottom --autoclose=2
But when I run :FloatermToggle with no float-terminal initially open, it create a new floating terminal with the default properties.
:FloatermToggle
Is there a way to toggle so that if no terminal exists then it opens one as specified above?
The text was updated successfully, but these errors were encountered:
+1
Sorry, something went wrong.
Agreed. For now, this is how I configured it in Lua (using Lazy.nvim) in my Neovim setup:
keys = { "<leader>`", function() if vim.fn["floaterm#terminal#get_bufnr"]("quake") < 0 then vim.cmd.FloatermNew({ "--height=0.3", "--wintype=split", "--name=quake", "--autoclose=2", "--title=Quake" }) else vim.cmd.FloatermToggle("quake") end end, mode = {'n', 'i', 't'}, desc="Quake terminal" }
It checks whether a terminal with a given name exists already, and acts accordingly
No branches or pull requests
Hey first of all thanks for the awesome plugin!
I usually have a vs-code style terminal docked at the bottom of my editor which is called by command
But when I run
:FloatermToggle
with no float-terminal initially open, it create a new floating terminal with the default properties.Is there a way to toggle so that if no terminal exists then it opens one as specified above?
The text was updated successfully, but these errors were encountered: