Skip to content

Commit

Permalink
feat(completion): add cmp-calc
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamilcuk committed Jun 16, 2024
1 parent 2289358 commit a8100ae
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-calc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# cmp-calc

Calculation source for nvim-cmp

**Repository:** <https://github.com/hrsh7th/cmp-calc>
9 changes: 9 additions & 0 deletions lua/astrocommunity/completion/cmp-calc/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-calc" },
opts = function(_, opts)
opts.sources = opts.sources or {}
table.insert(opts.sources, { name = "calc" })
end,
}

0 comments on commit a8100ae

Please sign in to comment.