modules: enable devicons in nvim-tree
This commit is contained in:
parent
9f11473eca
commit
2b92614d0e
2 changed files with 5 additions and 2 deletions
|
@ -14,6 +14,8 @@ let
|
||||||
isEmptyVar = name: eq "" (var name);
|
isEmptyVar = name: eq "" (var name);
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
nvim-web-devicons = true;
|
||||||
|
|
||||||
nvim-tree-lua = (
|
nvim-tree-lua = (
|
||||||
[
|
[
|
||||||
(pipe [ (require "nvim-tree") (call "setup" [ configs ]) ])
|
(pipe [ (require "nvim-tree") (call "setup" [ configs ]) ])
|
||||||
|
|
|
@ -55,9 +55,10 @@ let
|
||||||
with nix2lua.lib;
|
with nix2lua.lib;
|
||||||
"-- Plugin: ${builtins.trace "Plugin: ${name}" name}\n"
|
"-- Plugin: ${builtins.trace "Plugin: ${name}" name}\n"
|
||||||
+ (if lib.isString cfg then cfg
|
+ (if lib.isString cfg then cfg
|
||||||
else if lib.isAttrs cfg then toLua cfg
|
else if lib.isAttrs cfg && cfg ? _type then toLua cfg
|
||||||
else if lib.isList cfg then toLua (concatLines cfg)
|
else if lib.isList cfg then toLua (concatLines cfg)
|
||||||
else abort "[neovim] mkPluginLuaConfig: unsupported type");
|
else if lib.isBool cfg then "" # Just skip lua config. Only enable the plugin.
|
||||||
|
else abort "[neovim] mkPluginLuaConfig: '${name}' has unsupported type '${builtins.typeOf cfg}'");
|
||||||
pluginLuaConfigs = lib.mapAttrsToList mkPluginLuaConfig pluginsWithModules;
|
pluginLuaConfigs = lib.mapAttrsToList mkPluginLuaConfig pluginsWithModules;
|
||||||
|
|
||||||
basicLuaConfigs = map builtins.readFile [ ./config/basic.lua ];
|
basicLuaConfigs = map builtins.readFile [ ./config/basic.lua ];
|
||||||
|
|
Reference in a new issue