summaryrefslogtreecommitdiff
path: root/lua/99/extensions/cmp.lua
diff options
context:
space:
mode:
authorThePrimeAgain <theprimeagain@theprimeagain.com>2026-01-15 22:17:39 -0700
committerThePrimeAgain <theprimeagain@theprimeagain.com>2026-01-15 22:17:39 -0700
commitb168bc747b09ce904a6e2b8bf4e2145f4b2aa7aa (patch)
tree3af588690b29179764739b7de037c79830879341 /lua/99/extensions/cmp.lua
parenta91be0f9edde34e6cd85d0e9f7730c5866d99e08 (diff)
downloada4-b168bc747b09ce904a6e2b8bf4e2145f4b2aa7aa.tar.xz
a4-b168bc747b09ce904a6e2b8bf4e2145f4b2aa7aa.zip
pr ready
Diffstat (limited to 'lua/99/extensions/cmp.lua')
-rw-r--r--lua/99/extensions/cmp.lua16
1 files changed, 8 insertions, 8 deletions
diff --git a/lua/99/extensions/cmp.lua b/lua/99/extensions/cmp.lua
index 72760bb..d43ee8b 100644
--- a/lua/99/extensions/cmp.lua
+++ b/lua/99/extensions/cmp.lua
@@ -34,19 +34,19 @@ function CmpSource.new(_99)
}, CmpSource)
end
-function CmpSource:is_available()
+function CmpSource.is_available()
return true
end
-function CmpSource:get_debug_name()
+function CmpSource.get_debug_name()
return SOURCE
end
-function CmpSource:get_keyword_pattern()
+function CmpSource.get_keyword_pattern()
return [[@\k\+]]
end
-function CmpSource:get_trigger_characters()
+function CmpSource.get_trigger_characters()
return { "@" }
end
@@ -94,19 +94,19 @@ function CmpSource:complete(params, callback)
end
--- TODO: Look into what this could be
-function CmpSource:resolve(completion_item, callback)
+function CmpSource.resolve(completion_item, callback)
callback(completion_item)
end
-function CmpSource:execute(completion_item, callback)
+function CmpSource.execute(completion_item, callback)
callback(completion_item)
end
--- @type CmpSource | nil
local source = nil
---- @param _99 _99.State
-local function init_for_buffer(_99)
+--- @param _ _99.State
+local function init_for_buffer(_)
local cmp = require("cmp")
cmp.setup.buffer({
sources = {