Skip to content

Commit 8d174be

Browse files
author
Ali Shahid
committed
[nvim-lspconfig] minor refactor
1 parent a36c494 commit 8d174be

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

lua/plugins/nvim-lspconfig.lua

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -101,17 +101,19 @@ vim.diagnostic.config({
101101
},
102102
})
103103

104-
handlers["textDocument/publishDiagnostics"] =
105-
lsp.with(lsp.diagnostic.on_publish_diagnostics, {
106-
underline = true,
107-
signs = true,
108-
update_in_insert = true,
109-
virtual_text = {
110-
true,
111-
spacing = 6,
112-
-- severity_limit='Error' -- Only show virtual text on error
113-
},
114-
})
104+
handlers["textDocument/publishDiagnostics"] = lsp.with(
105+
lsp.diagnostic.on_publish_diagnostics,
106+
{
107+
underline = true,
108+
signs = true,
109+
update_in_insert = true,
110+
virtual_text = {
111+
true,
112+
spacing = 6,
113+
-- severity_limit='Error' -- Only show virtual text on error
114+
},
115+
}
116+
)
115117

116118
handlers["textDocument/hover"] = lsp.with(handlers.hover, {border = "rounded"})
117119
handlers["textDocument/signatureHelp"] = lsp.with(handlers.signature_help, {border = "rounded"})

0 commit comments

Comments
 (0)