Open
Description
Did you check docs and existing issues?
- I have read all the docs.
- I have searched the existing issues.
- I have searched the existing discussions.
Neovim Version (nvim -v)
0.10.1
Operating System / Version
WSL2 + Ubuntu 22.04 LTS
Describe the Bug
I've set use_default_mappings = false, but the mapping for input and filter popup is not disable, I can still see the mappings:
Screenshots, Traceback
No response
Steps to Reproduce
- Set
use_default_mapping=false
- Use
/
to open filter - The key bindings
<c-n>
and<c-p>
is still working
Expected Behavior
Disable these mappings.
Your Configuration
-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end
-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, })
end
vim.opt.runtimepath:prepend(lazypath)
-- install plugins
local plugins = {
"folke/tokyonight.nvim",
-- add any other plugins here
}
local neotree_config = {
"nvim-neo-tree/neo-tree.nvim",
dependencies = { "MunifTanjim/nui.nvim", "nvim-tree/nvim-web-devicons", "nvim-lua/plenary.nvim" },
cmd = { "Neotree" },
keys = {
{ "<Leader>e", "<Cmd>Neotree<CR>" }, -- change or remove this line if relevant.
},
opts = {
-- Your config here
-- ...
use_default_mapping=false,
filesystem = {
window = {
mappings = {
['/'] = 'fuzzy_finder',
},
fuzzy_finder_mappings = {
["<c-j>"] = "move_cursor_down",
["<c-k>"] = "move_cursor_up",
-- ['<c-n>'] = 'noop' -- this will give me a warning 'noop' command a niv value
},
},
}
},
}
table.insert(plugins, neotree_config)
require("lazy").setup(plugins, {
root = root .. "/plugins",
})
vim.cmd.colorscheme("tokyonight")