From 9e3be30b92ed4c210c5fa27883ad805cccdef712 Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Tue, 5 Mar 2024 14:13:36 -0500 Subject: [PATCH] fix!: `diagnostics` configuration moved to AstroCore --- lua/plugins/astrocore.lua | 6 ++++++ lua/plugins/astrolsp.lua | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lua/plugins/astrocore.lua b/lua/plugins/astrocore.lua index 24acee2..de17c22 100644 --- a/lua/plugins/astrocore.lua +++ b/lua/plugins/astrocore.lua @@ -15,9 +15,15 @@ return { large_buf = { size = 1024 * 500, lines = 10000 }, -- set global limits for large files for disabling features like treesitter autopairs = true, -- enable autopairs at start cmp = true, -- enable completion at start + diagnostics_mode = 3, -- diagnostic mode on start (0 = off, 1 = no signs/virtual text, 2 = no virtual text, 3 = on) highlighturl = true, -- highlight URLs at start notifications = true, -- enable notifications at start }, + -- Diagnostics configuration (for vim.diagnostics.config({...})) when diagnostics are on + diagnostics = { + virtual_text = true, + underline = true, + }, -- vim options can be configured here options = { opt = { -- vim.opt. diff --git a/lua/plugins/astrolsp.lua b/lua/plugins/astrolsp.lua index 97c3eb6..3d5f7ff 100644 --- a/lua/plugins/astrolsp.lua +++ b/lua/plugins/astrolsp.lua @@ -14,15 +14,9 @@ return { features = { autoformat = true, -- enable or disable auto formatting on start codelens = true, -- enable/disable codelens refresh on start - diagnostics_mode = 3, -- diagnostic mode on start (0 = off, 1 = no signs/virtual text, 2 = no virtual text, 3 = on) inlay_hints = false, -- enable/disable inlay hints on start semantic_tokens = true, -- enable/disable semantic token highlighting }, - -- Diagnostics configuration (for vim.diagnostics.config({...})) when diagnostics are on - diagnostics = { - virtual_text = true, - underline = true, - }, -- customize lsp formatting options formatting = { -- control auto formatting on save