ref: Add future deprecation notices for jump_map

This commit is contained in:
danymat
2021-11-18 12:42:12 +01:00
parent 864c6a6353
commit d7a26c15ab
2 changed files with 15 additions and 4 deletions

View File

@@ -142,6 +142,14 @@ neogen.setup = function(opts)
if neogen.configuration.enabled == true then
neogen.generate_command()
vim.api.nvim_set_keymap("i", neogen.configuration.jump_map, "<cmd>lua require('neogen').jump_next()<CR>", {})
vim.notify(
[[
[neogen] Future deprecation: `jump_map` option will be deprecated in favor of user keybinds.
You can do something like this:
vim.api.nvim_set_keymap("n", "<C-e>", ":lua require('neogen').jump_next()<CR>", { silent = true, noremap = true })
]],
vim.log.levels.WARN
)
end
end