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

Wrong documentation #205

Open
SebasF1349 opened this issue Dec 15, 2024 · 0 comments
Open

Wrong documentation #205

SebasF1349 opened this issue Dec 15, 2024 · 0 comments

Comments

@SebasF1349
Copy link

I can be totally wrong of course, but in the documentation these keymaps are presented (https://github.com/danymat/neogen?tab=readme-ov-file#default-cycling-support)

local opts = { noremap = true, silent = true }
vim.api.nvim_set_keymap("i", "<C-l>", ":lua require('neogen').jump_next<CR>", opts)
vim.api.nvim_set_keymap("i", "<C-h>", ":lua require('neogen').jump_prev<CR>", opts)

Aren't they wrong and should be instead

local opts = { noremap = true, silent = true }
vim.api.nvim_set_keymap("i", "<C-l>", "<cmd>lua require('neogen').jump_next()<CR>", opts)
vim.api.nvim_set_keymap("i", "<C-h>", "<cmd>lua require('neogen').jump_prev()<CR>", opts)

Note the change of : with <cmd> (to avoid just writing it in insert mode) and the missing brackets at the end of the functions.

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

1 participant