hrsh7th / nvim-cmp

A completion plugin for neovim coded in Lua.
MIT License
7.9k stars 394 forks source link

Can you add for lua and lazy.nvim users a recommended configuration in the readme? #1748

Open stephane-archer opened 11 months ago

stephane-archer commented 11 months ago

FAQ

Announcement

Minimal reproducible full config

Can you add for lua and lazy.nvim users a recommended configuration in the readme?

Description

Can you add for lua and lazy.nvim users a recommended configuration in the readme?

Steps to reproduce

Can you add for lua and lazy.nvim users a recommended configuration in the readme?

Expected behavior

Can you add for lua and lazy.nvim users a recommended configuration in the readme?

Actual behavior

Can you add for lua and lazy.nvim users a recommended configuration in the readme?

Additional context

No response

tbmreza commented 7 months ago
require('lazy').setup({
  {
    'nvim-telescope/telescope.nvim', tag = '0.1.5'
                                -- , branch = '0.1.x'  -- or branch
                                   , dependencies = { 'nvim-lua/plenary.nvim' }
  },
  {
    'hrsh7th/nvim-cmp',
    -- load cmp on InsertEnter
    event = 'InsertEnter',
    -- these dependencies will only be loaded when cmp loads
    -- dependencies are always lazy-loaded unless specified otherwise
    dependencies = {
      'L3MON4D3/LuaSnip',
      'hrsh7th/cmp-nvim-lsp',
      'hrsh7th/cmp-path',
      'hrsh7th/cmp-buffer',
      'saadparwaiz1/cmp_luasnip',
    },
  },
})

This is mine.

stephane-archer commented 7 months ago

You are the best :D