feat(nvim): add buffer lines source to cmp
This commit is contained in:
parent
4ef478a14a
commit
a9193a6532
@ -121,9 +121,10 @@ cmp.setup({
|
|||||||
end, { "i", "s" }),
|
end, { "i", "s" }),
|
||||||
},
|
},
|
||||||
sources = cmp.config.sources({
|
sources = cmp.config.sources({
|
||||||
{ name = "nvim_lsp", priority = 10 },
|
{ name = "nvim_lsp", priority = 11 },
|
||||||
{ name = "luasnip", priority = 9 }, -- For luasnip users.
|
{ name = "luasnip", priority = 10 }, -- For luasnip users.
|
||||||
{ name = "fuzzy_buffer", priority = 8, keyword_length = 3, max_item_count = 10 },
|
{ name = "fuzzy_buffer", priority = 9, keyword_length = 3, max_item_count = 10 },
|
||||||
|
{ name = "buffer-lines", priority = 8 },
|
||||||
{
|
{
|
||||||
name = "rg",
|
name = "rg",
|
||||||
priority = 7,
|
priority = 7,
|
||||||
|
@ -438,6 +438,7 @@ return packer.startup({
|
|||||||
"lukas-reineke/cmp-rg",
|
"lukas-reineke/cmp-rg",
|
||||||
"onsails/lspkind.nvim",
|
"onsails/lspkind.nvim",
|
||||||
"f3fora/cmp-spell",
|
"f3fora/cmp-spell",
|
||||||
|
"amarakon/nvim-cmp-buffer-lines"
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
require("plugins.configs._cmp")
|
require("plugins.configs._cmp")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user