How to keep C-f C-b work in INSERT mode, after enabled mini.completion? #2111
-
Contributing guidelines
Module(s)mini.completion QuestionI have the following config to make neovim have a readline-like behavior in INSERT mode: vim.keymap.set({ "c", "i" }, "<C-F>", "<Right>", { desc = "Forward char" })
vim.keymap.set({ "c", "i" }, "<C-B>", "<Left>", { desc = "Backward char" })
vim.keymap.set("i", "<C-N>", "<Down>", { desc = "Next line" })
vim.keymap.set("i", "<C-P>", "<Up>", { desc = "Prev line" })After enabled How to solve this problem? thanks in advance :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
This looks like conflicting with default scrolling mappings of 'mini.completion'. There are two approaches to resolve this:
|
Beta Was this translation helpful? Give feedback.
This looks like conflicting with default scrolling mappings of 'mini.completion'. There are two approaches to resolve this:
Create your own mappings after calling
require('mini.completion').setup().Instruct 'mini.completion' to not create scrolling mappings (or use different keys for it). The "not create at all" approach is something like this: