This repository has been archived on 2024-05-17. You can view files and clone it, but cannot push or open issues or pull requests.
neovim/plugins/explorer/default.nix

23 lines
609 B
Nix
Raw Permalink Normal View History

2022-11-19 00:56:53 +03:00
{ lib
, plugins ? { }
, nvim-tree-lua
2022-10-22 23:35:27 +03:00
, telescope-nvim
, telescope-live-grep-args-nvim
, ...
}:
2022-10-22 23:35:27 +03:00
let
inherit (builtins) readFile;
2022-11-19 00:56:53 +03:00
nvimTreeLuaSettings = lib.toLua (lib.attrByPath [ "nvimTree" "settings" ] { } plugins);
telescopeSettings = lib.toLua (lib.attrByPath [ "telescope" "settings" ] { } plugins);
2022-10-22 23:35:27 +03:00
in
{
2022-11-19 00:56:53 +03:00
luaConfig =
(readFile (lib.substituteAll { src = ./nvim-tree.lua; inherit nvimTreeLuaSettings; }))
+ (readFile (lib.substituteAll { src = ./telescope-nvim.lua; inherit telescopeSettings; }));
plugins = [ nvim-tree-lua ]
++ [ telescope-nvim telescope-live-grep-args-nvim ];
}