Skip to content

Commit

Permalink
feat(cmp): set group_index for lsp and buffer cmp sources
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Apr 1, 2024
1 parent e0b826d commit bfb01ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/astronvim/plugins/cmp_luasnip.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ return {

local sources = {}
for source_plugin, source in pairs {
["cmp-nvim-lsp"] = { name = "nvim_lsp", priority = 1000 },
["cmp-buffer"] = { name = "buffer", priority = 500 },
["cmp-nvim-lsp"] = { name = "nvim_lsp", priority = 1000, group_index = 1 },
["cmp-buffer"] = { name = "buffer", priority = 500, group_index = 2 },
["cmp-path"] = { name = "path", priority = 250 },
} do
if astro.is_available(source_plugin) then table.insert(sources, source) end
Expand Down

0 comments on commit bfb01ee

Please sign in to comment.