mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-01 16:45:07 +02:00
plugins/lastplace: migrate to mkNeovimPlugin
This commit is contained in:
parent
a3eed84e1e
commit
10ea28fff4
3 changed files with 74 additions and 43 deletions
28
plugins/by-name/lastplace/deprecations.nix
Normal file
28
plugins/by-name/lastplace/deprecations.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ lib }:
|
||||
{
|
||||
imports =
|
||||
let
|
||||
basePath = [
|
||||
"plugins"
|
||||
"lastplace"
|
||||
];
|
||||
|
||||
settingsPath = basePath ++ [ "settings" ];
|
||||
in
|
||||
lib.nixvim.mkSettingsRenamedOptionModules basePath settingsPath [
|
||||
{
|
||||
old = "ignoreBuftype";
|
||||
new = "lastplace_ignore_buftype";
|
||||
}
|
||||
{
|
||||
old = "ignoreFiletype";
|
||||
new = "lastplace_ignore_filetype";
|
||||
}
|
||||
{
|
||||
old = "openFolds";
|
||||
new = "lastplace_open_folds";
|
||||
}
|
||||
];
|
||||
|
||||
deprecateExtraOptions = true;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue