diff --git a/dots/.nvim-environments/primary/config/lua/plugins/configs/_cmp.lua b/dots/.nvim-environments/primary/config/lua/plugins/configs/_cmp.lua index b0fa58b3..d47c2b69 100755 --- a/dots/.nvim-environments/primary/config/lua/plugins/configs/_cmp.lua +++ b/dots/.nvim-environments/primary/config/lua/plugins/configs/_cmp.lua @@ -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, diff --git a/dots/.nvim-environments/primary/config/lua/plugins/plugins.lua b/dots/.nvim-environments/primary/config/lua/plugins/plugins.lua index 9370133a..e060210f 100755 --- a/dots/.nvim-environments/primary/config/lua/plugins/plugins.lua +++ b/dots/.nvim-environments/primary/config/lua/plugins/plugins.lua @@ -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")