We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22b0343 commit 950ec08Copy full SHA for 950ec08
after/plugin/eca-nvim.lua
@@ -0,0 +1,12 @@
1
+---@diagnostic disable-next-line: param-type-mismatch
2
+local has_cmp, cmp = pcall(require, "cmp")
3
+if has_cmp then
4
+ cmp.register_source("eca_commands", require("eca.completion.cmp.commands").new())
5
+ cmp.register_source("eca_contexts", require("eca.completion.cmp.context").new())
6
+ cmp.setup.filetype("eca-input", {
7
+ sources = {
8
+ { name = "eca_contexts" },
9
+ { name = "eca_commands" },
10
+ },
11
+ })
12
+end
lua/eca/completion/cmp/init.lua
0 commit comments