diff options
| author | William Boman <william@redwill.se> | 2022-12-07 11:08:38 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-07 11:08:38 +0100 |
| commit | 66f02fd2de1c824e859a58367b2ed6a669fdd03f (patch) | |
| tree | 12e9f22d01f31b0b1c3b82f237cd1e89e70f2fca /lua/mason-core/ui/display.lua | |
| parent | chore: update generated code (#737) (diff) | |
| download | mason-66f02fd2de1c824e859a58367b2ed6a669fdd03f.tar mason-66f02fd2de1c824e859a58367b2ed6a669fdd03f.tar.gz mason-66f02fd2de1c824e859a58367b2ed6a669fdd03f.tar.bz2 mason-66f02fd2de1c824e859a58367b2ed6a669fdd03f.tar.lz mason-66f02fd2de1c824e859a58367b2ed6a669fdd03f.tar.xz mason-66f02fd2de1c824e859a58367b2ed6a669fdd03f.tar.zst mason-66f02fd2de1c824e859a58367b2ed6a669fdd03f.zip | |
fix(ui): set severity min & max for namespaced diagnostic config (#738)
Simply setting it to true won't override sub-items such as a user's
severity config. Some users may for example have set the `virtual_text`
severity to only show ERRORs, causing Mason's INFO diagnostics to not be
displayed.
Diffstat (limited to 'lua/mason-core/ui/display.lua')
| -rw-r--r-- | lua/mason-core/ui/display.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lua/mason-core/ui/display.lua b/lua/mason-core/ui/display.lua index b98b37ee..cd6e3efb 100644 --- a/lua/mason-core/ui/display.lua +++ b/lua/mason-core/ui/display.lua @@ -201,7 +201,10 @@ function M.new_view_only_win(name, filetype) local window_opts = {} vim.diagnostic.config({ - virtual_text = true, + virtual_text = { + severity = { min = vim.diagnostic.severity.HINT, max = vim.diagnostic.severity.ERROR }, + }, + right_align = false, underline = false, signs = false, virtual_lines = false, |
