nix-community.nixvim/tests/test-sources/plugins/by-name/lean/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

79 lines
1.8 KiB
Nix
Raw Normal View History

2025-03-04 10:09:08 +01:00
{
2023-11-11 23:40:39 +01:00
empty = {
plugins.lean.enable = true;
};
# Enable the `leanls` LSP directly from `plugins.lsp`. This implies explicitly disabling the lsp
# in the `lean` plugin configuration.
lspDisabled = {
plugins = {
lsp = {
enable = true;
servers.leanls.enable = true;
};
lean = {
enable = true;
settings.lsp.enable = false;
2023-11-11 23:40:39 +01:00
};
};
};
default = {
plugins = {
lsp.enable = true;
lean = {
enable = true;
settings = {
lsp = { };
ft = {
default = "lean";
nomodifiable = null;
2023-11-11 23:40:39 +01:00
};
abbreviations = {
enable = true;
extra = { };
leader = "\\";
2023-11-11 23:40:39 +01:00
};
mappings = false;
infoview = {
autoopen = true;
autopause = false;
width = 50;
height = 20;
horizontal_position = "bottom";
separate_tab = false;
indicators = "auto";
show_processing = true;
show_no_info_message = false;
use_widgets = true;
mappings = {
K = "click";
"<CR>" = "click";
gd = "go_to_def";
gD = "go_to_decl";
gy = "go_to_type";
I = "mouse_enter";
i = "mouse_leave";
"<Esc>" = "clear_all";
C = "clear_all";
"<LocalLeader><Tab>" = "goto_last_window";
};
};
progress_bars = {
enable = true;
priority = 10;
};
stderr = {
enable = true;
height = 5;
on_lines.__raw = "function(lines) vim.notify(lines) end";
2023-11-11 23:40:39 +01:00
};
};
};
};
};
}