Closed sho-87 closed 1 year ago
@sho-87 I don't really know, the issue you've described here seems quite specific to your workflow/config and involves interactions with other plugins. I don't know why it might not work with lualine. You might need to try using something like vim.schedule
to wrap the start insert. In either case I generally don't handle configuration debugging type issues since it's just me maintaining this so I need to focus on explicit bugs or particularly valuable feature requests
I have a
utils.lua
file that defines and exports a custom terminal:Then I have a keymap that calls the toggle function, which all seems to work fine and it starts lazygit in insert mode as expected:
However, I'm calling the same function in the
on_click
of a lualine component, but in that case it starts in normal mode instead of insert:My toggleterm config:
Is this an issue with my code or a bug with custom terminals?