2024-03-12 00:46:29 +00:00
|
|
|
{lib, ...}: let
|
2025-01-19 17:26:52 +00:00
|
|
|
inherit (lib.options) mkOption mkEnableOption;
|
|
|
|
inherit (lib.types) listOf str either;
|
|
|
|
inherit (lib.nvim.types) mkPluginSetupOption luaInline;
|
2023-11-08 02:16:46 +00:00
|
|
|
in {
|
2023-02-27 19:25:39 +00:00
|
|
|
options.vim.lsp = {
|
|
|
|
lightbulb = {
|
2023-04-02 16:58:57 +00:00
|
|
|
enable = mkEnableOption "Lightbulb for code actions. Requires an emoji font";
|
2024-12-10 21:00:51 +00:00
|
|
|
setupOpts = mkPluginSetupOption "nvim-lightbulb" {};
|
2025-01-19 17:26:52 +00:00
|
|
|
autocmd = {
|
|
|
|
enable = mkEnableOption "updating lightbulb glyph automatically" // {default = true;};
|
|
|
|
events = mkOption {
|
|
|
|
type = listOf str;
|
|
|
|
default = ["CursorHold" "CursorHoldI"];
|
|
|
|
description = "Events on which to update nvim-lightbulb glyphs";
|
|
|
|
};
|
|
|
|
|
|
|
|
pattern = mkOption {
|
|
|
|
type = either str luaInline;
|
|
|
|
default = "*";
|
|
|
|
description = ''
|
|
|
|
File patterns or buffer names to match, determining which files or buffers trigger
|
|
|
|
glyph updates.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
2023-02-27 19:25:39 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|