mirror of
https://github.com/nix-community/nixvim.git
synced 2025-12-16 14:01:10 +01:00
plugins/efmls-configs: inline efm language settings (cosmetic)
This commit is contained in:
parent
4cf2afde78
commit
575e241fa2
1 changed files with 25 additions and 27 deletions
|
|
@ -183,8 +183,21 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
map (
|
||||
tool: if lib.isString tool then lib.nixvim.mkRaw "require 'efmls-configs.${kind}.${tool}'" else tool
|
||||
) (lib.toList opt);
|
||||
in
|
||||
{
|
||||
# TODO: print the location of the offending options
|
||||
warnings = lib.nixvim.mkWarnings "plugins.efmls-configs" {
|
||||
when = nixvimPkgs.wrong != [ ];
|
||||
|
||||
setupOptions =
|
||||
message = ''
|
||||
Following tools are not handled by nixvim, please add them to `externallyManagedPackages` to silence this:
|
||||
${lib.concatMapStringsSep "\n" (tool: " - ${tool}") nixvimPkgs.wrong}
|
||||
'';
|
||||
};
|
||||
|
||||
lsp.servers.efm = {
|
||||
enable = true;
|
||||
config.settings.languages =
|
||||
(lib.mapAttrs
|
||||
(
|
||||
_:
|
||||
|
|
@ -209,21 +222,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
(mkToolValue "linters" cfg.languages.all.linter)
|
||||
++ (mkToolValue "formatters" cfg.languages.all.formatter);
|
||||
};
|
||||
in
|
||||
{
|
||||
# TODO: print the location of the offending options
|
||||
warnings = lib.nixvim.mkWarnings "plugins.efmls-configs" {
|
||||
when = nixvimPkgs.wrong != [ ];
|
||||
|
||||
message = ''
|
||||
Following tools are not handled by nixvim, please add them to `externallyManagedPackages` to silence this:
|
||||
${lib.concatMapStringsSep "\n" (tool: " - ${tool}") nixvimPkgs.wrong}
|
||||
'';
|
||||
};
|
||||
|
||||
lsp.servers.efm = {
|
||||
enable = true;
|
||||
config.settings.languages = setupOptions;
|
||||
};
|
||||
|
||||
extraPackages = map (name: cfg.toolPackages.${name}) nixvimPkgs.right;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue