nvf/modules/plugins/lsp/lightbulb/config.nix

22 lines
430 B
Nix
Raw Permalink Normal View History

{
config,
lib,
...
}: let
inherit (lib.modules) mkIf;
inherit (lib.nvim.dag) entryAnywhere;
2024-05-03 17:11:07 +00:00
inherit (lib.nvim.lua) toLuaObject;
cfg = config.vim.lsp;
in {
config = mkIf (cfg.enable && cfg.lightbulb.enable) {
vim = {
startPlugins = ["nvim-lightbulb"];
luaConfigRC.lightbulb = entryAnywhere ''
2024-05-03 17:11:07 +00:00
require("nvim-lightbulb").setup(${toLuaObject cfg.lightbulb.setupOpts})
'';
};
};
}