mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-31 08:05:23 +02:00
treewide: format with new treefmt
This commit is contained in:
parent
c61851aff7
commit
8529f1c86b
34 changed files with 688 additions and 702 deletions
|
@ -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
|
||||
));
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue