Public Access
fix diagnostics
This commit is contained in:
@@ -15,25 +15,13 @@ vim.pack.add({
|
||||
|
||||
local mason_lspconfig = require("mason-lspconfig")
|
||||
|
||||
local diag_inline_enabled = true
|
||||
|
||||
local function diag_virtual_text()
|
||||
if not diag_inline_enabled then
|
||||
return false
|
||||
end
|
||||
|
||||
return {
|
||||
severity = vim.diagnostic.severity.WARN,
|
||||
}
|
||||
end
|
||||
|
||||
local function configure_diagnostics()
|
||||
vim.diagnostic.config({
|
||||
severity_sort = true,
|
||||
signs = true,
|
||||
underline = true,
|
||||
update_in_insert = false,
|
||||
virtual_text = diag_virtual_text(),
|
||||
virtual_text = true,
|
||||
float = {
|
||||
border = "rounded",
|
||||
source = "if_many",
|
||||
|
||||
Reference in New Issue
Block a user