Skip to content

Commit 7115894

Browse files
authored
Update CmpStatus command to lua API (#922)
Signed-off-by: Micah Halter <[email protected]>
1 parent e015e47 commit 7115894

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugin/cmp.lua

+3-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@ if vim.on_key then
102102
end, vim.api.nvim_create_namespace('cmp.plugin'))
103103
end
104104

105-
vim.cmd([[command! CmpStatus lua require('cmp').status()]])
105+
vim.api.nvim_create_user_command('CmpStatus', function()
106+
require('cmp').status()
107+
end, { desc = 'Check status of cmp sources' })
106108

107109
vim.cmd([[doautocmd <nomodeline> User CmpReady]])
108110

0 commit comments

Comments
 (0)