refactor(commands): remove stop subcommand
Problem: :Preview stop had a subtle distinction from toggle-off (kill
process but keep autocmd) that nobody reaches for deliberately from
the command line.
Solution: remove stop from the command dispatch table. The Lua API
require('preview').stop() remains as a programmatic escape hatch.
This commit is contained in:
parent
46cbf41612
commit
1d0077ab60
2 changed files with 0 additions and 10 deletions
|
|
@ -4,9 +4,6 @@ local handlers = {
|
|||
compile = function()
|
||||
require('preview').compile()
|
||||
end,
|
||||
stop = function()
|
||||
require('preview').stop()
|
||||
end,
|
||||
clean = function()
|
||||
require('preview').clean()
|
||||
end,
|
||||
|
|
|
|||
|
|
@ -21,13 +21,6 @@ describe('commands', function()
|
|||
end)
|
||||
end)
|
||||
|
||||
it('does not error on :Preview stop', function()
|
||||
require('preview.commands').setup()
|
||||
assert.has_no.errors(function()
|
||||
vim.cmd('Preview stop')
|
||||
end)
|
||||
end)
|
||||
|
||||
it('does not error on :Preview status', function()
|
||||
require('preview.commands').setup()
|
||||
assert.has_no.errors(function()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue