1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-12-09 18:41:07 +01:00
nixvim/plugins/by-name/lean/default.nix
2025-12-07 23:34:03 +00:00

54 lines
1 KiB
Nix

{
lib,
...
}:
let
inherit (lib.nixvim) defaultNullOpts;
in
lib.nixvim.plugins.mkNeovimPlugin {
name = "lean";
package = "lean-nvim";
description = "Neovim support for the Lean theorem prover.";
maintainers = [ lib.maintainers.khaneliman ];
dependencies = [ "lean" ];
settingsOptions = {
stderr = {
on_lines = defaultNullOpts.mkLuaFn "nil" ''
A callback which will be called with (multi-line) stderr output.
'';
};
};
settingsExample = {
settings = {
lsp = {
enable = true;
};
ft = {
default = "lean";
nomodifiable = [ "_target" ];
};
abbreviations = {
enable = true;
extra = {
wknight = "";
};
};
mappings = false;
infoview = {
horizontal_position = "top";
separate_tab = true;
indicators = "always";
};
progress_bars = {
enable = false;
};
stderr = {
on_lines.__raw = "function(lines) vim.notify(lines) end";
};
};
};
}