Skip to content

KadoBOT/cmp-plugins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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' },
  },
})