feat(plugins/astrocore): fully configure as in astronvim
This commit is contained in:
parent
455cb6f839
commit
519e85f142
8 changed files with 1215 additions and 12 deletions
33
plugins/astrocore/diagnostics.nix
Normal file
33
plugins/astrocore/diagnostics.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue