summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/custom/plugins/nvim-cmp.lua
blob: 4860338ccd4c9342ac47472db5820caf7153f558 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
return {
    'hrsh7th/nvim-cmp',
    event = "InsertEnter",
    dependencies = {
        'onsails/lspkind.nvim', -- icons for completion type
        'hrsh7th/cmp-path', -- complete filepaths
        'hrsh7th/cmp-nvim-lsp', -- lsp source for nvim-cmp
        'saadparwaiz1/cmp_luasnip', -- snippets source for nvim-cmp
        { 'L3MON4D3/LuaSnip', build = 'make install_jsregexp' }, -- snippets plugin
    },
    config = function()
        require('custom.config.cmp')
    end,
}