Skip to content

Commit

Permalink
Update CmpStatus command to lua API
Browse files Browse the repository at this point in the history
Signed-off-by: Micah Halter <micah@balena.io>
  • Loading branch information
mehalter committed Apr 19, 2022
1 parent 07132dc commit 687ab65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/cmp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ if vim.on_key then
end, vim.api.nvim_create_namespace('cmp.plugin'))
end

vim.cmd [[command! CmpStatus lua require('cmp').status()]]
vim.api.nvim_create_user_command('CmpStatus', require('cmp').status, {})

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

0 comments on commit 687ab65

Please sign in to comment.