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:
Barrett Ruth 2026-03-04 13:11:14 -05:00
parent 46cbf41612
commit 1d0077ab60
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
2 changed files with 0 additions and 10 deletions

View file

@ -4,9 +4,6 @@ local handlers = {
compile = function()
require('preview').compile()
end,
stop = function()
require('preview').stop()
end,
clean = function()
require('preview').clean()
end,

View file

@ -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()