Open hopezh opened 1 year ago
I am getting the same thing:
floaterm: health#floaterm#check
common ~
- Platform: macos
- Nvim: NVIM v0.9.0
- Plugin: 59c1fd5
terminal ~
- OK Terminal emulator is available
floating ~
- OK Floating window is available
Same here
floaterm: health#floaterm#check
========================================================================
## common
- INFO: Platform: linux
- INFO: Nvim: NVIM v0.9.0-dev-254+gde500095b
- INFO: Plugin: bd0aee3
## terminal
- OK: Terminal emulator is available
## floating
- OK: Floating window is available
Same here
floaterm: health#floaterm#check ======================================================================== ## common - INFO: Platform: linux - INFO: Nvim: NVIM v0.9.0-dev-254+gde500095b - INFO: Plugin: bd0aee3 ## terminal - OK: Terminal emulator is available ## floating - OK: Floating window is available
return {
'voldikss/vim-floaterm',
init = function()
vim.g.floaterm_keymap_toggle = '<F1>'
end,
}
This one seems to work for me.
I have tried about everything at this point and @ScheiklP method is the only one that works for me, as well. Thanks for the solution!
I have tried about everything at this point and @ScheiklP method is the only one that works for me, as well. Thanks for the solution!
Defining shortcuts using the "keys" option didn't work for me to toggle terminals. putting it in the init
options works for me too.
I'm using LazyVim to install floaterm, with the following keymap config in the floaterm.lua file in
LazyVim/lua/plugins
folder to create a new floaterm window or toggle a floaterm window:However, once the floterm window is open, which-key's keymapto is not working anymore, whatever I type will be the input of the terminal line, i.e. the floaterm window is not responding to which-key anymore.
May I ask how to make floaterm responds to which-key key maps? Thanks.
vim --version
: NVIM v0.10.0-dev-86+g54dab9ed9If you are using neovim, just run
:checkhealth floaterm
and post the contentbelow.