feat(nvim): add buffer lines source to cmp

This commit is contained in:
Price Hiller 2022-10-10 12:53:31 -05:00
parent 4ef478a14a
commit a9193a6532
2 changed files with 5 additions and 3 deletions

View File

@ -121,9 +121,10 @@ cmp.setup({
end, { "i", "s" }),
},
sources = cmp.config.sources({
{ name = "nvim_lsp", priority = 10 },
{ name = "luasnip", priority = 9 }, -- For luasnip users.
{ name = "fuzzy_buffer", priority = 8, keyword_length = 3, max_item_count = 10 },
{ name = "nvim_lsp", priority = 11 },
{ name = "luasnip", priority = 10 }, -- For luasnip users.
{ name = "fuzzy_buffer", priority = 9, keyword_length = 3, max_item_count = 10 },
{ name = "buffer-lines", priority = 8 },
{
name = "rg",
priority = 7,

View File

@ -438,6 +438,7 @@ return packer.startup({
"lukas-reineke/cmp-rg",
"onsails/lspkind.nvim",
"f3fora/cmp-spell",
"amarakon/nvim-cmp-buffer-lines"
},
config = function()
require("plugins.configs._cmp")