migrating the cmp brain

This commit is contained in:
2026-03-24 21:18:06 -04:00
parent 0d83c6ba4d
commit f8ce473877
13 changed files with 252 additions and 386 deletions

View File

@@ -0,0 +1,28 @@
local source = {}
--- Create new cmp source instance
function source.new()
return setmetatable({}, { __index = source })
end
--- Get source name
function source:get_keyword_pattern()
return [[\k\+]]
end
--- Check if source is available
function source:is_available()
return true
end
--- Get debug name
function source:get_debug_name()
return "codetyper"
end
--- Get trigger characters
function source:get_trigger_characters()
return { ".", ":", "_" }
end
return source