Skip to content

Commit

Permalink
feat(completion): add cmp-nvim-lua (#1050)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamilcuk authored Jun 19, 2024
1 parent 59caac5 commit c127e71
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/astrocommunity/completion/cmp-nvim-lua/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# cmp-nvim-lua

nvim-cmp source for neovim Lua API.

**Repository:** <https://github.com/hrsh7th/cmp-nvim-lua>
9 changes: 9 additions & 0 deletions lua/astrocommunity/completion/cmp-nvim-lua/init.lua
Original file line number Diff line number Diff line change
@@ -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,
}

0 comments on commit c127e71

Please sign in to comment.