mirror of
https://github.com/neovim/neovim.git
synced 2026-04-24 08:15:41 +00:00
@@ -1017,5 +1017,21 @@ function lsp.get_log_path()
|
||||
return log.get_filename()
|
||||
end
|
||||
|
||||
local function define_default_sign(name, properties)
|
||||
if not vim.fn.sign_getdefined(name) then
|
||||
vim.fn.sign_define(name, properties)
|
||||
end
|
||||
end
|
||||
|
||||
-- Define the LspDiagnostics signs if they're not defined already.
|
||||
local function define_default_lsp_diagnostics_signs()
|
||||
define_default_sign('LspDiagnosticsErrorSign', {text='E', texthl='LspDiagnosticsError', linehl='', numhl=''})
|
||||
define_default_sign('LspDiagnosticsWarningSign', {text='W', texthl='LspDiagnosticsWarning', linehl='', numhl=''})
|
||||
define_default_sign('LspDiagnosticsInformationSign', {text='I', texthl='LspDiagnosticsInformation', linehl='', numhl=''})
|
||||
define_default_sign('LspDiagnosticsHintSign', {text='H', texthl='LspDiagnosticsHint', linehl='', numhl=''})
|
||||
end
|
||||
|
||||
define_default_lsp_diagnostics_signs()
|
||||
|
||||
return lsp
|
||||
-- vim:sw=2 ts=2 et
|
||||
|
||||
Reference in New Issue
Block a user