fix(plugins/astrocore): wrongly set options
This commit is contained in:
parent
f71226be0f
commit
208ee4fec2
4 changed files with 66 additions and 74 deletions
|
|
@ -2,32 +2,30 @@
|
|||
{ icons, ... }:
|
||||
|
||||
{
|
||||
diagnostics = {
|
||||
underline = true;
|
||||
update_in_insert = true;
|
||||
severity_sort = true;
|
||||
virtual_text = true;
|
||||
underline = true;
|
||||
update_in_insert = true;
|
||||
severity_sort = true;
|
||||
virtual_text = true;
|
||||
|
||||
float = {
|
||||
focused = false;
|
||||
style = "minimal";
|
||||
border = "rounded";
|
||||
source = "always";
|
||||
header = "";
|
||||
prefix = "";
|
||||
};
|
||||
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;
|
||||
};
|
||||
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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,25 +1,23 @@
|
|||
# https://github.com/AstroNvim/AstroNvim/blob/v4.7.7/lua/astronvim/plugins/_astrocore.lua#L32-L39
|
||||
{
|
||||
features = {
|
||||
# Enable autopairs at start
|
||||
autopairs = true;
|
||||
# Enable autopairs at start
|
||||
autopairs = true;
|
||||
|
||||
# Enable completion at start
|
||||
cmp = true;
|
||||
# Enable completion at start
|
||||
cmp = true;
|
||||
|
||||
# Enable diagnostics by default
|
||||
diagnostics_mode = 3;
|
||||
# Enable diagnostics by default
|
||||
diagnostics_mode = 3;
|
||||
|
||||
# Highlight URLs by default
|
||||
highlighturl = true;
|
||||
# Highlight URLs by default
|
||||
highlighturl = true;
|
||||
|
||||
# Disable notifications
|
||||
notifications = true;
|
||||
# Disable notifications
|
||||
notifications = true;
|
||||
|
||||
# Set global limits for large files
|
||||
large_buf = {
|
||||
lines = 10000;
|
||||
size = 1024 * 500;
|
||||
};
|
||||
# Set global limits for large files
|
||||
large_buf = {
|
||||
lines = 10000;
|
||||
size = 1024 * 500;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,30 +1,28 @@
|
|||
# https://github.com/AstroNvim/AstroNvim/blob/v4.7.7/lua/astronvim/plugins/_astrocore.lua#L62-L72
|
||||
{
|
||||
rooter = {
|
||||
enabled = true;
|
||||
autochdir = false;
|
||||
notify = false;
|
||||
scope = "global";
|
||||
enabled = true;
|
||||
autochdir = false;
|
||||
notify = false;
|
||||
scope = "global";
|
||||
|
||||
detector = [
|
||||
"lsp"
|
||||
[
|
||||
".git"
|
||||
"_darcs"
|
||||
".hg"
|
||||
".bzr"
|
||||
".svn"
|
||||
]
|
||||
[
|
||||
"lua"
|
||||
"MakeFile"
|
||||
"package.json"
|
||||
]
|
||||
];
|
||||
detector = [
|
||||
"lsp"
|
||||
[
|
||||
".git"
|
||||
"_darcs"
|
||||
".hg"
|
||||
".bzr"
|
||||
".svn"
|
||||
]
|
||||
[
|
||||
"lua"
|
||||
"MakeFile"
|
||||
"package.json"
|
||||
]
|
||||
];
|
||||
|
||||
ignore = {
|
||||
dirs = {};
|
||||
servers = {};
|
||||
};
|
||||
ignore = {
|
||||
dirs = { };
|
||||
servers = { };
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,13 @@
|
|||
# https://github.com/AstroNvim/AstroNvim/blob/v4.7.7/lua/astronvim/plugins/_astrocore.lua#L73-L80
|
||||
{
|
||||
sessions = {
|
||||
autosave = {
|
||||
cwd = true;
|
||||
last = true;
|
||||
};
|
||||
autosave = {
|
||||
cwd = true;
|
||||
last = true;
|
||||
};
|
||||
|
||||
ignore = {
|
||||
buftypes = {};
|
||||
dirs = {};
|
||||
filetypes = [ "gitcommit" "gitrebase" ];
|
||||
};
|
||||
ignore = {
|
||||
buftypes = { };
|
||||
dirs = { };
|
||||
filetypes = [ "gitcommit" "gitrebase" ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue