blink: show from all buffers in this win
This commit is contained in:
parent
b8db9122eb
commit
55423e5964
@ -84,7 +84,21 @@ return {
|
|||||||
cmdline_history = {
|
cmdline_history = {
|
||||||
name = 'cmdline_history',
|
name = 'cmdline_history',
|
||||||
module = 'blink.compat.source',
|
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,
|
||||||
|
}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user