Public Access
fix diagnostics
This commit is contained in:
@@ -15,25 +15,13 @@ vim.pack.add({
|
|||||||
|
|
||||||
local mason_lspconfig = require("mason-lspconfig")
|
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()
|
local function configure_diagnostics()
|
||||||
vim.diagnostic.config({
|
vim.diagnostic.config({
|
||||||
severity_sort = true,
|
severity_sort = true,
|
||||||
signs = true,
|
signs = true,
|
||||||
underline = true,
|
underline = true,
|
||||||
update_in_insert = false,
|
update_in_insert = false,
|
||||||
virtual_text = diag_virtual_text(),
|
virtual_text = true,
|
||||||
float = {
|
float = {
|
||||||
border = "rounded",
|
border = "rounded",
|
||||||
source = "if_many",
|
source = "if_many",
|
||||||
|
|||||||
Reference in New Issue
Block a user