blink: show from all buffers in this win

This commit is contained in:
Oliver Hartmann 2025-03-02 23:01:31 +01:00
parent b8db9122eb
commit 55423e5964

View File

@ -84,7 +84,21 @@ return {
cmdline_history = {
name = 'cmdline_history',
module = 'blink.compat.source',
}
},
buffer = {
name = 'Buffer',
module = 'blink.cmp.sources.buffer',
opts = {
-- default to all visible buffers
get_bufnrs = function()
return vim
.iter(vim.api.nvim_list_wins())
:map(function(win) return vim.api.nvim_win_get_buf(win) end)
:filter(function(buf) return vim.bo[buf].buftype ~= 'nofile' end)
:totable()
end,
}
},
},
},