mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-28 06:35:05 +02:00
treewide: format with new nixfmt
This commit is contained in:
parent
d63fd77511
commit
dd73afe9c6
34 changed files with 665 additions and 679 deletions
|
@ -70,21 +70,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
|
||||
));
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue