mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-12 10:14:31 +02:00
plugins/*: use new mkSettingsRenamedOptionModules
This commit is contained in:
parent
0ddf6e39ac
commit
c179d47d3d
37 changed files with 1176 additions and 1510 deletions
|
@ -28,27 +28,21 @@ lib.nixvim.neovim-plugin.mkNeovimPlugin {
|
|||
"mapBs"
|
||||
"mapCH"
|
||||
"mapCW"
|
||||
{
|
||||
old = "disabledFiletypes";
|
||||
new = "disable_filetype";
|
||||
}
|
||||
{
|
||||
old = "enableAfterQuote";
|
||||
new = "enable_afterquote";
|
||||
}
|
||||
];
|
||||
imports = [
|
||||
(mkRemovedOptionModule [ "plugins" "nvim-autopairs" "pairs" ] ''
|
||||
This option was having no effect.
|
||||
If you want to customize pairs, please use `luaConfig` to define them as described in the plugin documentation.
|
||||
'')
|
||||
];
|
||||
imports =
|
||||
let
|
||||
basePluginPaths = [
|
||||
"plugins"
|
||||
"nvim-autopairs"
|
||||
];
|
||||
settingsPath = basePluginPaths ++ [ "settings" ];
|
||||
in
|
||||
[
|
||||
(mkRenamedOptionModule (basePluginPaths ++ [ "disabledFiletypes" ]) (
|
||||
settingsPath ++ [ "disable_filetype" ]
|
||||
))
|
||||
(mkRenamedOptionModule (basePluginPaths ++ [ "enableAfterQuote" ]) (
|
||||
settingsPath ++ [ "enable_afterquote" ]
|
||||
))
|
||||
(mkRemovedOptionModule (basePluginPaths ++ [ "pairs" ]) ''
|
||||
This option was having no effect.
|
||||
If you want to customize pairs, please use `luaConfig` to define them as described in the plugin documentation.
|
||||
'')
|
||||
];
|
||||
|
||||
settingsOptions = {
|
||||
disable_filetype = helpers.defaultNullOpts.mkListOf types.str [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue