mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-09 16:54:36 +02:00
plugins/*: use new mkSettingsRenamedOptionModules
This commit is contained in:
parent
0ddf6e39ac
commit
c179d47d3d
37 changed files with 1176 additions and 1510 deletions
|
@ -193,6 +193,27 @@ lib.nixvim.neovim-plugin.mkNeovimPlugin {
|
|||
"initSelection"
|
||||
"scopeIncremental"
|
||||
]
|
||||
{
|
||||
old = "customCaptures";
|
||||
new = [
|
||||
"highlight"
|
||||
"custom_captures"
|
||||
];
|
||||
}
|
||||
{
|
||||
old = "disabledLanguages";
|
||||
new = [
|
||||
"highlight"
|
||||
"disable"
|
||||
];
|
||||
}
|
||||
{
|
||||
old = "indent";
|
||||
new = [
|
||||
"indent"
|
||||
"enable"
|
||||
];
|
||||
}
|
||||
];
|
||||
|
||||
imports =
|
||||
|
@ -201,30 +222,10 @@ lib.nixvim.neovim-plugin.mkNeovimPlugin {
|
|||
"plugins"
|
||||
"treesitter"
|
||||
];
|
||||
settingsPath = basePluginPath ++ [ "settings" ];
|
||||
in
|
||||
[
|
||||
(lib.mkRenamedOptionModule (basePluginPath ++ [ "moduleConfig" ]) settingsPath)
|
||||
(lib.mkRenamedOptionModule (basePluginPath ++ [ "customCaptures" ]) (
|
||||
settingsPath
|
||||
++ [
|
||||
"highlight"
|
||||
"custom_captures"
|
||||
]
|
||||
))
|
||||
(lib.mkRenamedOptionModule (basePluginPath ++ [ "disabledLanguages" ]) (
|
||||
settingsPath
|
||||
++ [
|
||||
"highlight"
|
||||
"disable"
|
||||
]
|
||||
))
|
||||
(lib.mkRenamedOptionModule (basePluginPath ++ [ "indent" ]) (
|
||||
settingsPath
|
||||
++ [
|
||||
"indent"
|
||||
"enable"
|
||||
]
|
||||
(lib.mkRenamedOptionModule (basePluginPath ++ [ "moduleConfig" ]) (
|
||||
basePluginPath ++ [ "settings" ]
|
||||
))
|
||||
];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue