You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but it registers 10 keys even though i only have 3 buffers which is not feasible, so i got chatgpt to work and it got me something like this:
local function count_buffers()
local count = 1
for _, buffer in ipairs(vim.api.nvim_list_bufs()) do
if vim.api.nvim_buf_is_loaded(buffer) then
count = count + 1
end
end
return count
end
local buffer_count = count_buffers()
for i = 1, buffer_count do
local key = keys:sub(i, i)
vim.keymap.set({ "t", "n" }, string.format(",%s", key), function()
bmui.nav_file(i)
end, { desc = "Switch Buffer: " .. key, noremap = true })
end
so it does work but i use which-key.nvim which doesnt update so can i get something to update that?
chatgpt didnt work this time sadly 😢
The text was updated successfully, but these errors were encountered:
daUnknownCoder
changed the title
there is no setup function (lazy)
navigation only for open buffers?
Jul 2, 2024
hi, i was trying to setup the
<leader>%s
keys in1-10
like this:but it registers 10 keys even though i only have 3 buffers which is not feasible, so i got chatgpt to work and it got me something like this:
so it does work but i use which-key.nvim which doesnt update so can i get something to update that?
chatgpt didnt work this time sadly 😢
The text was updated successfully, but these errors were encountered: