mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-08 19:46:06 +01:00
plugins: remove deprecations "after 24.11" or less
Signed-off-by: saygo-png <saygo.mail@proton.me>
This commit is contained in:
parent
be72c48997
commit
29ec33e1a8
86 changed files with 27 additions and 3578 deletions
|
|
@ -14,89 +14,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
MattSturgeon
|
||||
];
|
||||
|
||||
# TODO: Added 2024-06-17; remove 2024-09-17
|
||||
deprecateExtraOptions = true;
|
||||
optionsRenamedToSettings =
|
||||
let
|
||||
# Combine base option paths with nested mode option paths
|
||||
merged = flatten [
|
||||
opts
|
||||
(mapAttrsToList (mode: extras: map (opt: "${mode}.${opt}") (opts ++ extras)) modes)
|
||||
];
|
||||
|
||||
# Option paths that should be renamed
|
||||
opts = [
|
||||
"labels"
|
||||
"search.multiWindow"
|
||||
"search.forward"
|
||||
"search.wrap"
|
||||
"search.mode"
|
||||
"search.incremental"
|
||||
"search.exclude"
|
||||
"search.trigger"
|
||||
"search.maxLength"
|
||||
"jump.jumplist"
|
||||
"jump.pos"
|
||||
"jump.history"
|
||||
"jump.register"
|
||||
"jump.nohlsearch"
|
||||
"jump.autojump"
|
||||
"jump.inclusive"
|
||||
"jump.offset"
|
||||
"label.uppercase"
|
||||
"label.exclude"
|
||||
"label.current"
|
||||
"label.after"
|
||||
"label.before"
|
||||
"label.style"
|
||||
"label.reuse"
|
||||
"label.distance"
|
||||
"label.minPatternLength"
|
||||
"label.rainbow.enabled"
|
||||
"label.rainbow.shade"
|
||||
"label.format"
|
||||
"highlight.backdrop"
|
||||
"highlight.matches"
|
||||
"highlight.priority"
|
||||
"highlight.group.match"
|
||||
"highlight.group.current"
|
||||
"highlight.group.backdrop"
|
||||
"highlight.group.label"
|
||||
"action"
|
||||
"pattern"
|
||||
"continue"
|
||||
"config"
|
||||
"prompt.enabled"
|
||||
"prompt.prefix"
|
||||
"prompt.winConfig.relative"
|
||||
"prompt.winConfig.width"
|
||||
"prompt.winConfig.height"
|
||||
"prompt.winConfig.row"
|
||||
"prompt.winConfig.col"
|
||||
"prompt.winConfig.zindex"
|
||||
"remoteOp.restore"
|
||||
"remoteOp.motion"
|
||||
];
|
||||
|
||||
# "Modes" that should also be renamed
|
||||
# `opts` will get added to the attr value
|
||||
modes = {
|
||||
search = [ "enabled" ];
|
||||
char = [
|
||||
"enabled"
|
||||
"autohide"
|
||||
"jumpLabels"
|
||||
"multiLine"
|
||||
"keys"
|
||||
"charActions"
|
||||
];
|
||||
treesitter = [ ];
|
||||
treesitterSearch = [ ];
|
||||
remote = [ ];
|
||||
};
|
||||
in
|
||||
map (splitString ".") merged;
|
||||
|
||||
imports = [
|
||||
# TODO: check automatic search config still works
|
||||
(mkRemovedOptionModule [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue