We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Reactive
1 parent 2bf4df3 commit 3749f7aCopy full SHA for 3749f7a
lua/reactive/commands.lua
@@ -153,6 +153,16 @@ function M:init()
153
user_cmd('Reactive', function(opts)
154
local cmd, val = unpack(vim.split(vim.trim(opts.args), '%s+'))
155
156
+ if not cmd or vim.trim(cmd) == '' then
157
+ vim.notify('reactive.nvim: specify a command', vim.log.levels.ERROR)
158
+ return
159
+ end
160
+
161
+ if not val then
162
+ vim.notify('reactive.nvim: specify a preset name', vim.log.levels.ERROR)
163
164
165
166
if not self.commands[cmd] then
167
vim.notify('reactive.nvim: There\'s no such a command: ' .. cmd, vim.log.levels.ERROR)
168
elseif not require('reactive.state').presets[val] then
0 commit comments