From 208ee4fec28a626f0c998c27138e81d13f302dcf Mon Sep 17 00:00:00 2001 From: Nicolas Goudry Date: Fri, 7 Jun 2024 22:53:23 +0200 Subject: [PATCH] fix(plugins/astrocore): wrongly set options --- plugins/astrocore/diagnostics.nix | 46 +++++++++++++++---------------- plugins/astrocore/features.nix | 30 ++++++++++---------- plugins/astrocore/rooter.nix | 46 +++++++++++++++---------------- plugins/astrocore/sessions.nix | 18 ++++++------ 4 files changed, 66 insertions(+), 74 deletions(-) diff --git a/plugins/astrocore/diagnostics.nix b/plugins/astrocore/diagnostics.nix index c227e1d..777b391 100644 --- a/plugins/astrocore/diagnostics.nix +++ b/plugins/astrocore/diagnostics.nix @@ -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; }; }; } diff --git a/plugins/astrocore/features.nix b/plugins/astrocore/features.nix index d9800ac..7731d9f 100644 --- a/plugins/astrocore/features.nix +++ b/plugins/astrocore/features.nix @@ -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; }; } diff --git a/plugins/astrocore/rooter.nix b/plugins/astrocore/rooter.nix index 518ebcb..5b00d0b 100644 --- a/plugins/astrocore/rooter.nix +++ b/plugins/astrocore/rooter.nix @@ -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 = { }; }; } diff --git a/plugins/astrocore/sessions.nix b/plugins/astrocore/sessions.nix index 9816faf..9770836 100644 --- a/plugins/astrocore/sessions.nix +++ b/plugins/astrocore/sessions.nix @@ -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" ]; }; }