fix: add nargs
parent
60c3237a24
commit
2a0a1629d5
|
@ -226,11 +226,11 @@ function M.setup(config)
|
|||
M.config = vim.tbl_deep_extend("force", M.config, config or M.config_default)
|
||||
M.config.nvim_ns = vim.api.nvim_create_namespace("tsql")
|
||||
|
||||
vim.api.nvim_create_user_command("Noh", function() M.clear_highlights() end,
|
||||
{ nargs = "0", desc = "Clear tsql highlights" })
|
||||
vim.api.nvim_create_user_command("Noh", function(_) M.clear_highlights() end,
|
||||
{ nargs = 0, desc = "Clear tsql highlights" })
|
||||
vim.api.nvim_create_user_command("Tdsl", function(cmd)
|
||||
M.s(cmd.args):do_nvim(M.store)
|
||||
end, { nargs = "*", desc = "tsql DSL invocation" })
|
||||
end, { nargs = "?", desc = "tsql DSL invocation" })
|
||||
|
||||
M.store = M.Store:new()
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue