Skip to content

Commit 9e3be30

Browse files
committed
fix!: diagnostics configuration moved to AstroCore
1 parent d1c8c8c commit 9e3be30

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lua/plugins/astrocore.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,15 @@ return {
1515
large_buf = { size = 1024 * 500, lines = 10000 }, -- set global limits for large files for disabling features like treesitter
1616
autopairs = true, -- enable autopairs at start
1717
cmp = true, -- enable completion at start
18+
diagnostics_mode = 3, -- diagnostic mode on start (0 = off, 1 = no signs/virtual text, 2 = no virtual text, 3 = on)
1819
highlighturl = true, -- highlight URLs at start
1920
notifications = true, -- enable notifications at start
2021
},
22+
-- Diagnostics configuration (for vim.diagnostics.config({...})) when diagnostics are on
23+
diagnostics = {
24+
virtual_text = true,
25+
underline = true,
26+
},
2127
-- vim options can be configured here
2228
options = {
2329
opt = { -- vim.opt.<key>

lua/plugins/astrolsp.lua

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,9 @@ return {
1414
features = {
1515
autoformat = true, -- enable or disable auto formatting on start
1616
codelens = true, -- enable/disable codelens refresh on start
17-
diagnostics_mode = 3, -- diagnostic mode on start (0 = off, 1 = no signs/virtual text, 2 = no virtual text, 3 = on)
1817
inlay_hints = false, -- enable/disable inlay hints on start
1918
semantic_tokens = true, -- enable/disable semantic token highlighting
2019
},
21-
-- Diagnostics configuration (for vim.diagnostics.config({...})) when diagnostics are on
22-
diagnostics = {
23-
virtual_text = true,
24-
underline = true,
25-
},
2620
-- customize lsp formatting options
2721
formatting = {
2822
-- control auto formatting on save

0 commit comments

Comments
 (0)