feat: adds broader buffer source for cmp buffer, all visible buffers now
All checks were successful
gitea-deepak/nixconf/pipeline/head This commit looks good
All checks were successful
gitea-deepak/nixconf/pipeline/head This commit looks good
This commit is contained in:
parent
2d207d4df9
commit
e6411a27af
@ -12,7 +12,14 @@ require("luasnip.loaders.from_vscode").lazy_load()
|
|||||||
cmp.setup({
|
cmp.setup({
|
||||||
sources = {
|
sources = {
|
||||||
{name = 'nvim_lsp'},
|
{name = 'nvim_lsp'},
|
||||||
{name = 'buffer'},
|
{
|
||||||
|
name = 'buffer',
|
||||||
|
option = {
|
||||||
|
get_bufnrs = function()
|
||||||
|
return vim.api.nvim_list_bufs()
|
||||||
|
end
|
||||||
|
},
|
||||||
|
},
|
||||||
{name = 'luasnip'},
|
{name = 'luasnip'},
|
||||||
{name = 'vimtex'},
|
{name = 'vimtex'},
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user