Skip to content
Discussion options

You must be logged in to vote
    sources = {
      -- Static list of providers to enable, or a function to dynamically enable/disable providers based on the context
      default = { 'lsp', 'path', 'snippets', 'buffer' },
    
      -- You may also define providers per filetype
      per_filetype = {
        -- optionally inherit from the `default` sources
        -- lua = { inherit_defaults = true, 'lsp', 'path' },
        -- vim = { inherit_defaults = true, 'cmdline' },
      },
    
      -- Function to use when transforming the items before they're returned for all providers
      -- The default will lower the score for snippets to sort them lower in the list
      transform_items = function(_, items) return items 

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Saghen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants