feat(plugins/astrocore): fully configure as in astronvim

This commit is contained in:
Nicolas Goudry 2024-06-07 17:07:38 +02:00
parent 455cb6f839
commit 519e85f142
No known key found for this signature in database
GPG key ID: 5FC434D9FFD1DF44
8 changed files with 1215 additions and 12 deletions

View file

@ -0,0 +1,33 @@
# https://github.com/AstroNvim/AstroNvim/blob/v4.7.7/lua/astronvim/plugins/_astrocore.lua#L40-L61
{ icons, ... }:
{
diagnostics = {
underline = true;
update_in_insert = true;
severity_sort = true;
virtual_text = true;
float = {
focused = false;
style = "minimal";
border = "rounded";
source = "always";
header = "";
prefix = "";
};
signs = {
text = {
# vim.diagnostic.severity.ERROR
"1" = icons.DiagnosticError;
# vim.diagnostic.severity.WARN
"2" = icons.DiagnosticWarn;
# vim.diagnostic.severity.INFO
"3" = icons.DiagnosticInfo;
# vim.diagnostic.severity.HINT
"4" = icons.DiagnosticHint;
};
};
};
}