FTerm.nvim icon indicating copy to clipboard operation
FTerm.nvim copied to clipboard

Lazygit / fterm workflow mode issue

Open mathieurousseau opened this issue 2 weeks ago • 0 comments

hey!

thanks for the great work!

I am not sure if this is a setup issue, but when I have lazygit opened, then i toggle to fterm and then go back to lazygit, i need to press i to go back to interactive mode to interact with lazygit (even to be able to quite lazygit)

my lazygit conf:

return {
  {
    'kdheepak/lazygit.nvim',
    cmd = {
      'LazyGit',
      'LazyGitConfig',
      'LazyGitCurrentFile',
      'LazyGitFilter',
      'LazyGitFilterCurrentFile',
    },
    -- optional for floating window border decoration
    dependencies = {
      'nvim-lua/plenary.nvim',
    },
    -- setting the keybinding for LazyGit with 'keys' is recommended in
    -- order to load the plugin when the command is run for the first time
    keys = {
      { '<leader>lg', '<cmd>LazyGit<cr>', desc = 'LazyGit' },
    },
  }
}

my fterm conf:

return {
  {
    'numToStr/FTerm.nvim',
    -- lazy = true,
    opts = {
      border     = 'double',
      dimensions = {
        height = 0.9,
        width = 0.9,
      }
    },
    keys = {


      { "<A-i>", '<Cmd>lua require("FTerm").toggle()<CR>',            desc = "[T]oggle FTerm" },
      { '<A-i>', '<C-\\><C-n><CMD>lua require("FTerm").toggle()<CR>', mode = { 't' } },

    }
  }
}

Thanks!

mathieurousseau avatar Nov 26 '25 14:11 mathieurousseau