Update completion sources

This commit is contained in:
Christian Nieves
2023-06-26 13:15:37 -05:00
parent 81995a78d6
commit 925f79f9d4
2 changed files with 7 additions and 1 deletions

View File

@ -35,19 +35,23 @@ return {
"hrsh7th/cmp-path",
"hrsh7th/cmp-vsnip",
"ray-x/cmp-treesitter",
"hrsh7th/cmp-emoji",
"hrsh7th/cmp-calc",
},
config = function()
local cmp = require("cmp")
local conditionalSources = cmp.config.sources({
{ name = "buffer", max_item_count = 5, keyword_length = 5, group_index = 2 },
{ name = "calc" },
{ name = "crates" },
{ name = "nvim_lsp" },
{ name = "nvim_lsp_signature_help", priority = 5 },
{ name = "nvim_lua" },
{ name = "path" },
{ name = "treesitter" },
{ name = "vim_vsnip" },
{ name = "vsnip" },
{ name = "emoji" },
{
name = "spell",
option = {