Skip to content

bug: adding terminal mode navigation support breaks using apps using `FloatermNew #434

@svanharmelen

Description

@svanharmelen

Hi,

I use lazygit in a floating terminal and since merging #431 this now breaks when using <C-j/k> (which are shortcuts I use within lazygit). It now tries to execute bash - c TmuxNavigateXXX which lazygit of course doesn't understand 😏

  {
    'voldikss/vim-floaterm',
    keys = {
      { '<leader>gg', ':nohlsearch<Bar>FloatermNew --height=0.95 --width=0.7 lazygit<CR>', silent = true },
    },
    config = function()
      vim.g.floaterm_borderchars = '─│─│╭╮╯╰'
      vim.g.floaterm_title = ''
    end,
  },

Is there any way to fix/prevent this with the newly added code? Or was this an oversight and does the PR need a bugfix?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions