Skip to content

Commit 950ec08

Browse files
committed
Add the after directory
1 parent 22b0343 commit 950ec08

File tree

2 files changed

+12
-18
lines changed

2 files changed

+12
-18
lines changed

after/plugin/eca-nvim.lua

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)