From c127e7145c44ad0128a121def6e74fd8f270c053 Mon Sep 17 00:00:00 2001 From: KamilCuk Date: Wed, 19 Jun 2024 07:03:25 +0200 Subject: [PATCH] feat(completion): add cmp-nvim-lua (#1050) --- lua/astrocommunity/completion/cmp-nvim-lua/README.md | 5 +++++ lua/astrocommunity/completion/cmp-nvim-lua/init.lua | 9 +++++++++ 2 files changed, 14 insertions(+) create mode 100644 lua/astrocommunity/completion/cmp-nvim-lua/README.md create mode 100644 lua/astrocommunity/completion/cmp-nvim-lua/init.lua 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, +}