mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-08 05:45:58 +01:00
42 lines
1.1 KiB
Nix
42 lines
1.1 KiB
Nix
|
{lib, ...}: let
|
||
|
inherit (lib) mkEnableOption mkOption types;
|
||
|
in {
|
||
|
options.vim.lsp.nvim-docs-view = {
|
||
|
enable = mkEnableOption "nvim-docs-view, for displaying lsp hover documentation in a side panel.";
|
||
|
|
||
|
position = mkOption {
|
||
|
type = types.enum ["left" "right" "top" "bottom"];
|
||
|
default = "right";
|
||
|
description = ''
|
||
|
Where to open the docs view panel
|
||
|
'';
|
||
|
};
|
||
|
|
||
|
height = mkOption {
|
||
|
type = types.int;
|
||
|
default = 10;
|
||
|
description = ''
|
||
|
Height of the docs view panel if the position is set to either top or bottom
|
||
|
'';
|
||
|
};
|
||
|
|
||
|
width = mkOption {
|
||
|
type = types.int;
|
||
|
default = 60;
|
||
|
description = ''
|
||
|
Width of the docs view panel if the position is set to either left or right
|
||
|
'';
|
||
|
};
|
||
|
|
||
|
updateMode = mkOption {
|
||
|
type = types.enum ["auto" "manual"];
|
||
|
default = "auto";
|
||
|
description = ''
|
||
|
Determines the mechanism used to update the docs view panel content.
|
||
|
- If auto, the content will update upon cursor move.
|
||
|
- If manual, the content will only update once :DocsViewUpdate is called
|
||
|
'';
|
||
|
};
|
||
|
};
|
||
|
}
|