plugins/tmux-navigator: remove old deprecations

This commit is contained in:
Matt Sturgeon 2024-06-07 07:50:08 +01:00
parent 302262304e
commit 4634c3781b
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299

View file

@ -6,30 +6,6 @@
...
}:
with lib;
let
# TODO: Introduced 2024-03-19, remove on 2024-05-19
deprecations =
let
pluginPath = [
"plugins"
"tmux-navigator"
];
option = s: pluginPath ++ [ s ];
setting =
s:
pluginPath
++ [
"settings"
s
];
settingStr = s: concatStringsSep "." (setting s);
in
[
(mkRenamedOptionModule (option "tmuxNavigatorSaveOnSwitch") (setting "save_on_switch"))
(mkRemovedOptionModule (option "tmuxNavigatorDisableWhenZoomed") "Use `${settingStr "disable_when_zoomed"}` option.")
(mkRemovedOptionModule (option "tmuxNavigatorNoWrap") "Use `${settingStr "no_wrap"}` option.")
];
in
helpers.vim-plugin.mkVimPlugin config {
name = "tmux-navigator";
originalName = "vim-tmux-navigator";
@ -90,8 +66,6 @@ helpers.vim-plugin.mkVimPlugin config {
[upstream docs]: https://github.com/christoomey/vim-tmux-navigator#installation
'';
imports = deprecations;
settingsOptions = {
save_on_switch =
helpers.mkNullOrOption