2023-04-06 16:04:29 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
let
|
2025-02-01 17:37:51 -06:00
|
|
|
inherit (lib.nixvim) defaultNullOpts;
|
|
|
|
inherit (lib) types;
|
2023-04-06 16:04:29 +02:00
|
|
|
in
|
2025-02-01 17:37:51 -06:00
|
|
|
lib.nixvim.plugins.mkNeovimPlugin {
|
|
|
|
name = "lastplace";
|
|
|
|
moduleName = "nvim-lastplace";
|
|
|
|
packPathName = "nvim-lastplace";
|
|
|
|
package = "nvim-lastplace";
|
2023-04-06 16:04:29 +02:00
|
|
|
|
2025-02-01 17:37:51 -06:00
|
|
|
maintainers = [ lib.maintainers.khaneliman ];
|
2023-04-06 16:04:29 +02:00
|
|
|
|
2025-02-01 17:37:51 -06:00
|
|
|
description = ''
|
|
|
|
A Neovim plugin that automatically opens files at your last edit position.
|
|
|
|
'';
|
|
|
|
|
|
|
|
settingsOptions = {
|
|
|
|
lastplace_ignore_buftype = defaultNullOpts.mkListOf types.str [
|
2024-06-11 16:54:57 +01:00
|
|
|
"quickfix"
|
|
|
|
"nofix"
|
|
|
|
"help"
|
|
|
|
] "The list of buffer types to ignore by lastplace.";
|
2023-04-06 16:04:29 +02:00
|
|
|
|
2025-02-01 17:37:51 -06:00
|
|
|
lastplace_ignore_filetype = defaultNullOpts.mkListOf types.str [
|
2024-06-11 16:54:57 +01:00
|
|
|
"gitcommit"
|
|
|
|
"gitrebase"
|
|
|
|
"svn"
|
|
|
|
"hgcommit"
|
|
|
|
] "The list of file types to ignore by lastplace.";
|
2023-04-06 16:04:29 +02:00
|
|
|
|
2025-02-01 17:37:51 -06:00
|
|
|
lastplace_open_folds = defaultNullOpts.mkBool true "Whether closed folds are automatically opened when jumping to the last edit position.";
|
2023-04-06 16:04:29 +02:00
|
|
|
};
|
|
|
|
|
2025-02-01 17:37:51 -06:00
|
|
|
settingsExample = {
|
|
|
|
settings = {
|
|
|
|
lastplace_ignore_buftype = [
|
|
|
|
"help"
|
|
|
|
];
|
|
|
|
lastplace_ignore_filetype = [
|
|
|
|
"svn"
|
|
|
|
];
|
|
|
|
lastplace_open_folds = false;
|
2023-04-06 16:04:29 +02:00
|
|
|
};
|
2025-02-01 17:37:51 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
# TODO: Deprecated 2025-02-01
|
|
|
|
inherit (import ./deprecations.nix { inherit lib; })
|
|
|
|
imports
|
|
|
|
deprecateExtraOptions
|
|
|
|
;
|
2023-04-06 16:04:29 +02:00
|
|
|
}
|