treewide: format with new treefmt

This commit is contained in:
Gaetan Lepage 2025-07-25 16:27:30 +02:00 committed by Gaétan Lepage
parent c61851aff7
commit 8529f1c86b
34 changed files with 688 additions and 702 deletions

View file

@ -74,21 +74,20 @@ lib.nixvim.plugins.mkNeovimPlugin {
callSetup = false;
extraConfig = cfg: {
plugins.cmp.luaConfig.content =
''
local cmp = require('cmp')
cmp.setup(${toLuaObject cfg.settings})
plugins.cmp.luaConfig.content = ''
local cmp = require('cmp')
cmp.setup(${toLuaObject cfg.settings})
''
+ (lib.concatStringsSep "\n" (
lib.mapAttrsToList (
filetype: settings: "cmp.setup.filetype('${filetype}', ${toLuaObject settings})\n"
) cfg.filetype
))
+ (lib.concatStringsSep "\n" (
lib.mapAttrsToList (
cmdtype: settings: "cmp.setup.cmdline('${cmdtype}', ${toLuaObject settings})\n"
) cfg.cmdline
));
''
+ (lib.concatStringsSep "\n" (
lib.mapAttrsToList (
filetype: settings: "cmp.setup.filetype('${filetype}', ${toLuaObject settings})\n"
) cfg.filetype
))
+ (lib.concatStringsSep "\n" (
lib.mapAttrsToList (
cmdtype: settings: "cmp.setup.cmdline('${cmdtype}', ${toLuaObject settings})\n"
) cfg.cmdline
));
};
}