diff --git a/lua/astrocommunity/completion/cmp-nvim-lua/README.md b/lua/astrocommunity/completion/cmp-nvim-lua/README.md new file mode 100644 index 000000000..b4d67b45a --- /dev/null +++ b/lua/astrocommunity/completion/cmp-nvim-lua/README.md @@ -0,0 +1,5 @@ +# cmp-nvim-lua + +nvim-cmp source for neovim Lua API. + +**Repository:** diff --git a/lua/astrocommunity/completion/cmp-nvim-lua/init.lua b/lua/astrocommunity/completion/cmp-nvim-lua/init.lua new file mode 100644 index 000000000..bade87301 --- /dev/null +++ b/lua/astrocommunity/completion/cmp-nvim-lua/init.lua @@ -0,0 +1,9 @@ +return { + "hrsh7th/nvim-cmp", + optional = true, + dependencies = { "hrsh7th/cmp-nvim-lua", lazy = true }, + opts = function(_, opts) + if not opts.sources then opts.sources = {} end + table.insert(opts.sources, { name = "nvim_lua" }) + end, +}