Skip to content

Commit 2b07e2e

Browse files
committed
Update CmpStatus command to lua API
Signed-off-by: Micah Halter <[email protected]>
1 parent 07132dc commit 2b07e2e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

plugin/cmp.lua

+5-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,11 @@ if vim.on_key then
122122
end, vim.api.nvim_create_namespace('cmp.plugin'))
123123
end
124124

125-
vim.cmd [[command! CmpStatus lua require('cmp').status()]]
125+
vim.api.nvim_create_user_command(
126+
'CmpStatus',
127+
require('cmp').status,
128+
{ desc = "Check status of cmp sources"}
129+
)
126130

127131
vim.cmd [[doautocmd <nomodeline> User CmpReady]]
128132

0 commit comments

Comments
 (0)