fix(plugins/astrocore): wrongly set options

This commit is contained in:
Nicolas Goudry 2024-06-07 22:53:23 +02:00
parent f71226be0f
commit 208ee4fec2
No known key found for this signature in database
GPG key ID: 5FC434D9FFD1DF44
4 changed files with 66 additions and 74 deletions

View file

@ -2,32 +2,30 @@
{ icons, ... }: { icons, ... }:
{ {
diagnostics = { underline = true;
underline = true; update_in_insert = true;
update_in_insert = true; severity_sort = true;
severity_sort = true; virtual_text = true;
virtual_text = true;
float = { float = {
focused = false; focused = false;
style = "minimal"; style = "minimal";
border = "rounded"; border = "rounded";
source = "always"; source = "always";
header = ""; header = "";
prefix = ""; prefix = "";
}; };
signs = { signs = {
text = { text = {
# vim.diagnostic.severity.ERROR # vim.diagnostic.severity.ERROR
"1" = icons.DiagnosticError; "1" = icons.DiagnosticError;
# vim.diagnostic.severity.WARN # vim.diagnostic.severity.WARN
"2" = icons.DiagnosticWarn; "2" = icons.DiagnosticWarn;
# vim.diagnostic.severity.INFO # vim.diagnostic.severity.INFO
"3" = icons.DiagnosticInfo; "3" = icons.DiagnosticInfo;
# vim.diagnostic.severity.HINT # vim.diagnostic.severity.HINT
"4" = icons.DiagnosticHint; "4" = icons.DiagnosticHint;
};
}; };
}; };
} }

View file

@ -1,25 +1,23 @@
# https://github.com/AstroNvim/AstroNvim/blob/v4.7.7/lua/astronvim/plugins/_astrocore.lua#L32-L39 # https://github.com/AstroNvim/AstroNvim/blob/v4.7.7/lua/astronvim/plugins/_astrocore.lua#L32-L39
{ {
features = { # Enable autopairs at start
# Enable autopairs at start autopairs = true;
autopairs = true;
# Enable completion at start # Enable completion at start
cmp = true; cmp = true;
# Enable diagnostics by default # Enable diagnostics by default
diagnostics_mode = 3; diagnostics_mode = 3;
# Highlight URLs by default # Highlight URLs by default
highlighturl = true; highlighturl = true;
# Disable notifications # Disable notifications
notifications = true; notifications = true;
# Set global limits for large files # Set global limits for large files
large_buf = { large_buf = {
lines = 10000; lines = 10000;
size = 1024 * 500; size = 1024 * 500;
};
}; };
} }

View file

@ -1,30 +1,28 @@
# https://github.com/AstroNvim/AstroNvim/blob/v4.7.7/lua/astronvim/plugins/_astrocore.lua#L62-L72 # https://github.com/AstroNvim/AstroNvim/blob/v4.7.7/lua/astronvim/plugins/_astrocore.lua#L62-L72
{ {
rooter = { enabled = true;
enabled = true; autochdir = false;
autochdir = false; notify = false;
notify = false; scope = "global";
scope = "global";
detector = [ detector = [
"lsp" "lsp"
[ [
".git" ".git"
"_darcs" "_darcs"
".hg" ".hg"
".bzr" ".bzr"
".svn" ".svn"
] ]
[ [
"lua" "lua"
"MakeFile" "MakeFile"
"package.json" "package.json"
] ]
]; ];
ignore = { ignore = {
dirs = {}; dirs = { };
servers = {}; servers = { };
};
}; };
} }

View file

@ -1,15 +1,13 @@
# https://github.com/AstroNvim/AstroNvim/blob/v4.7.7/lua/astronvim/plugins/_astrocore.lua#L73-L80 # https://github.com/AstroNvim/AstroNvim/blob/v4.7.7/lua/astronvim/plugins/_astrocore.lua#L73-L80
{ {
sessions = { autosave = {
autosave = { cwd = true;
cwd = true; last = true;
last = true; };
};
ignore = { ignore = {
buftypes = {}; buftypes = { };
dirs = {}; dirs = { };
filetypes = [ "gitcommit" "gitrebase" ]; filetypes = [ "gitcommit" "gitrebase" ];
};
}; };
} }