Skip to content

Commit b259b09

Browse files
committed
chore(nvim)!: Drop legacy Ethersync command aliases
BREAKING CHANGE: Any usage of the old `:Ethersync*` vim command names (from v0.8.0 or prior) will no longer work to transparently call the new `:Teamtype*` equivalents nor prompt the user that they are using a deprecated command name as they did during various v0.9.x releases. The old commands simply don't exist and any user configuration or muscle memory will need to be updated to reflect the current usage.
1 parent 406ed0c commit b259b09

1 file changed

Lines changed: 1 addition & 13 deletions

File tree

nvim-plugin/lua/teamtype.lua

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
-- SPDX-FileCopyrightText: 2025 blinry <[email protected]>
22
-- SPDX-FileCopyrightText: 2025 zormit <[email protected]>
3+
-- SPDX-FileCopyrightText: 2026 Caleb Maclennan <[email protected]>
34
--
45
-- SPDX-License-Identifier: AGPL-3.0-or-later
56

@@ -324,13 +325,6 @@ local function print_info()
324325
print(result)
325326
end
326327

327-
local function legacy_command(f)
328-
return function()
329-
print("You are using a deprecated user command Ethersync*. Please use the corresponding Teamtype* instead.")
330-
f()
331-
end
332-
end
333-
334328
local function activate_plugin()
335329
vim.api.nvim_create_autocmd({ "BufRead" }, { callback = on_buffer_open })
336330
vim.api.nvim_create_autocmd({ "BufNewFile" }, { callback = on_buffer_open })
@@ -343,12 +337,6 @@ local function activate_plugin()
343337
vim.api.nvim_create_user_command("TeamtypeInfo", print_info, {})
344338
vim.api.nvim_create_user_command("TeamtypeJumpToCursor", cursor.jump_to_cursor, {})
345339
vim.api.nvim_create_user_command("TeamtypeFollow", cursor.follow_cursor, {})
346-
347-
-- Support the old commands for a while, as they might be residing in user configurations.
348-
-- TODO: Remove this after a while.
349-
vim.api.nvim_create_user_command("EthersyncInfo", legacy_command(print_info), {})
350-
vim.api.nvim_create_user_command("EthersyncJumpToCursor", legacy_command(cursor.jump_to_cursor), {})
351-
vim.api.nvim_create_user_command("EthersyncFollow", legacy_command(cursor.follow_cursor), {})
352340
end
353341

354342
activate_plugin()

0 commit comments

Comments
 (0)