Skip to content
Discussion options

You must be logged in to vote
  • mode = 't' — When the terminal is open and you can type directly into it (Terminal mode).
  • mode = 'n' — When you are on top of terminal window and all Neovim keybindings work (Normal mode).
terminal = {
  win = {
    keys = {
      {
        '<C-f>',
        function()
          vim.print 'Mode = n'
        end,
        mode = 'n',
      },
      print_term_ins = { -- You can define or omit the key (`print_term_ins = `), it doesn't matter
        '<C-f>',
        function()
          vim.print 'Mode = t'
        end,
        mode = 't',
      },

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kwdiwt
Comment options

Answer selected by kwdiwt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants