Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

open_mapping is not work #626

Closed
Napoleon-Jm opened this issue Jan 3, 2025 · 1 comment
Closed

open_mapping is not work #626

Napoleon-Jm opened this issue Jan 3, 2025 · 1 comment

Comments

@Napoleon-Jm
Copy link

My settings:

return {
  'akinsho/toggleterm.nvim',
	version = '*',
	opts = {
      open_mapping = [[<C-j]],
      -- hide_number = true,
      start_in_insert = true,
      direction = 'float', -- vertical | float | tab
	}
}

When I type ctrl and , nothing happened, changed to [[<C-j]], is not work nether.

But when I use command :Toggleterm it's worked(show the terminal).

Is there a way to debug or show some extra log?

However the follows map is worked for me:

nnoremap <leader>t :ToggleTerm<CR>
tnoremap <leader>t <C-\><C-n>:ToggleTerm<CR>

but when toggled to close, and open again, the terminal is not in insert mode...

@akinsho
Copy link
Owner

akinsho commented Jan 7, 2025

@Napoleon-Jm you've written out the mapping character incorrectly it should be <C-j> I think your issue is likely a config/personal setup issue rather the an a plugin issue. Unfortunately I generally can't get into usage and bug detecting in your config so unfortunately I'll have to leave this to you to debug further

@akinsho akinsho closed this as completed Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants