2024-03-12 03:46:29 +03:00
|
|
|
{lib, ...}: let
|
2025-01-19 20:26:52 +03:00
|
|
|
inherit (lib.options) mkOption mkEnableOption;
|
|
|
|
inherit (lib.types) listOf str either;
|
|
|
|
inherit (lib.nvim.types) mkPluginSetupOption luaInline;
|
2023-11-07 19:16:46 -07:00
|
|
|
in {
|
2023-02-27 22:25:39 +03:00
|
|
|
options.vim.lsp = {
|
|
|
|
lightbulb = {
|
2023-04-02 19:58:57 +03:00
|
|
|
enable = mkEnableOption "Lightbulb for code actions. Requires an emoji font";
|
2024-12-10 22:00:51 +01:00
|
|
|
setupOpts = mkPluginSetupOption "nvim-lightbulb" {};
|
2025-01-19 20:26:52 +03: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 22:25:39 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|