feat: apply changes of neovim LSP
LSP diagnostics changed names
This commit is contained in:
parent
9a89111c5a
commit
09b2d82212
@ -6,34 +6,35 @@
|
||||
local lsp = {}
|
||||
|
||||
vim.fn.sign_define(
|
||||
"LspDiagnosticsSignError",
|
||||
"DiagnosticSignError",
|
||||
{
|
||||
texthl = "LspDiagnosticsSignError",
|
||||
texthl = "DiagnosticError",
|
||||
text = globals.sign_error,
|
||||
numhl = "LspDiagnosticsSignError"
|
||||
numhl = "DiagnosticError"
|
||||
}
|
||||
)
|
||||
vim.fn.sign_define(
|
||||
"LspDiagnosticsSignWarning",
|
||||
"DiagnosticSignWarn",
|
||||
{
|
||||
texthl = "LspDiagnosticsSignWarning",
|
||||
texthl = "DiagnosticWarn",
|
||||
text = globals.sign_warning,
|
||||
numhl = "LspDiagnosticsSignWarning"}
|
||||
)
|
||||
vim.fn.sign_define(
|
||||
"LspDiagnosticsSignHint",
|
||||
{
|
||||
texthl = "LspDiagnosticsSignHint",
|
||||
text = globals.sign_hint,
|
||||
numhl = "LspDiagnosticsSignHint"
|
||||
numhl = "DiagnosticWarn"
|
||||
}
|
||||
)
|
||||
vim.fn.sign_define(
|
||||
"LspDiagnosticsSignInformation",
|
||||
"DiagnosticSignHint",
|
||||
{
|
||||
texthl = "LspDiagnosticsSignInformation",
|
||||
texthl = "DiagnosticHint",
|
||||
text = globals.sign_hint,
|
||||
numhl = "DiagnosticHint"
|
||||
}
|
||||
)
|
||||
vim.fn.sign_define(
|
||||
"DiagnosticSignInfo",
|
||||
{
|
||||
texthl = "DiagnosticInfo",
|
||||
text = globals.sign_info,
|
||||
numhl = "LspDiagnosticsSignInformation"
|
||||
numhl = "DiagnosticInfo"
|
||||
}
|
||||
)
|
||||
|
||||
|
@ -103,8 +103,8 @@ local function get_lsp_diagnostics(bufnr)
|
||||
local result = {}
|
||||
local levels = {
|
||||
errors = "Error",
|
||||
warnings = "Warning",
|
||||
info = "Information",
|
||||
warnings = "Warn",
|
||||
info = "Info",
|
||||
hints = "Hint"
|
||||
}
|
||||
|
||||
@ -148,17 +148,17 @@ local function statusline_focused()
|
||||
process_diagnostics(
|
||||
globals.sign_error .. " ",
|
||||
diagnostics.errors,
|
||||
"%#LspDiagnosticsDefaultError#"
|
||||
"%#DiagnosticError#"
|
||||
),
|
||||
process_diagnostics(
|
||||
globals.sign_warning .. " ",
|
||||
diagnostics.warnings,
|
||||
"%#LspDiagnosticsDefaultWarning#"
|
||||
"%#DiagnosticWarn#"
|
||||
),
|
||||
process_diagnostics(
|
||||
globals.sign_info .. " ",
|
||||
diagnostics.info,
|
||||
"%#LspDiagnosticsDefaultInformation#"
|
||||
"%#DiagnosticInfo#"
|
||||
)
|
||||
}
|
||||
)
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 2596b02be402dae70a915898edc9c4391805c489
|
||||
Subproject commit bd4119a8c1a57b84f9470950a514f52d81907abb
|
Reference in New Issue
Block a user