/cmp-plugins

nvim-cmp source for Neovim plugins

Primary LanguageLuaMIT LicenseMIT

cmp-plugins

nvim-cmp source for Neovim plugins.

Screen.Recording.2022-06-17.at.7.54.55.mov

Setup

Instalation

By default, the source will be available on all lua files. It's suggested that you change it to the filenames (or path) where you install your Neovim plugins (regular expressions also work).

use({
  "hrsh7th/nvim-cmp",
  requires = {
    {
      "KadoBOT/cmp-plugins",
      config = function()
        require("cmp-plugins").setup({
          files = { ".*\\.lua" }  -- default
          -- files = { "plugins.lua", "some_path/plugins/" } -- Recommended: use static filenames or partial paths
        })
      end,
    },
  }
})

Configuration

require('cmp').setup({
  sources = {
    { name = 'plugins' },
  },
})