Skip to content

Commit

Permalink
feat(completion): Add cmp-cmdline (#383)
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzaaft authored Jul 9, 2023
1 parent c297a25 commit 80a781b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/astrocommunity/completion/cmp-cmdline/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Cmp Cmd

nvim-cmp source for vim's cmdline.

**Repository:** <https://github.com/hrsh7th/cmp-cmdline>
22 changes: 22 additions & 0 deletions lua/astrocommunity/completion/cmp-cmdline/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
local cmp = require "cmp"

return {
"hrsh7th/cmp-cmdline",
lazy = false,
opts = {
mapping = cmp.mapping.preset.cmdline(),
sources = cmp.config.sources({
{ name = "path" },
}, {
{
name = "cmdline",
option = {
ignore_cmds = { "Man", "!" },
},
},
}, {
{ name = "buffer" },
}),
},
config = function(_, opts) require("cmp").setup.cmdline(":", opts) end,
}

0 comments on commit 80a781b

Please sign in to comment.