Closed daUnknownCoder closed 3 weeks ago
The problem is in line map_buf("<Left>", files.go_out_plus)
(which is what .../NeutronVim/lua/NeutronVim/plugins/Editor/mini-files.lua:37
should point to). There is no function go_out_plus
exported from 'mini.files', you'd have to write a custom wrapper similar to go_in_plus
.
The problem is in line
map_buf("<Left>", files.go_out_plus)
(which is what.../NeutronVim/lua/NeutronVim/plugins/Editor/mini-files.lua:37
should point to). There is no functiongo_out_plus
exported from 'mini.files', you'd have to write a custom wrapper similar togo_in_plus
.
i also stated that the issue remains even if i use config = true
and yeah switching back to go_out
didnt solve it either
The problem is in line
map_buf("<Left>", files.go_out_plus)
(which is what.../NeutronVim/lua/NeutronVim/plugins/Editor/mini-files.lua:37
should point to). There is no functiongo_out_plus
exported from 'mini.files', you'd have to write a custom wrapper similar togo_in_plus
.i also stated that the issue remains even if i use
config = true
and yeah switching back togo_out
didnt solve it either
The following config (which is essentially the config
entry but commented out go_out_plus
usage) works without an error:
map_buf("<Left>", files.go_out_plus)
i changed it to mappings = { go_out_plus = "<Left>"},
and did a Lazy reload mini.files
which didnt work and i had to do a full neovim restart which solved it...
Contributing guidelines
Module(s)
mini.files
Description
Neovim version
0.10.0
Steps to reproduce
minimal config:
the issue stays the same no matter which config i use
my current config (click)
```lua return { "echasnovski/mini.files", version = false, config = function() local files_ok, files = pcall(require, "mini.files") if not files_ok then print("mini.files not found!") end files.setup({ mappings = { go_in = "", go_in_plus = "L", go_out = "H", go_out_plus = "", reset = "", show_help = "g?", }, windows = { preview = true, width_preview = 40 }, }) local go_in_plus = function() for _ = 1, vim.v.count1 do files.go_in({ close_on_file = true }) end end vim.api.nvim_create_autocmd("User", { pattern = "MiniFilesBufferCreate", callback = function(args) local map_buf = function(lhs, rhs) vim.keymap.set("n", lhs, rhs, { buffer = args.data.buf_id }) end map_buf("Expected behavior
with my current config,
<esc>
doesnt work like it doesnt do anythingActual behavior