clean stuff
This commit is contained in:
parent
c1544dd020
commit
fec301504f
|
@ -89,11 +89,15 @@ lspinstall.post_install_hook = function()
|
||||||
vim.cmd("bufdo e") -- triggers FileType autocmd that starts the server
|
vim.cmd("bufdo e") -- triggers FileType autocmd that starts the server
|
||||||
end
|
end
|
||||||
|
|
||||||
-- replace the default lsp diagnostic letters with prettier symbols
|
-- replace the default lsp diagnostic symbols
|
||||||
vim.fn.sign_define("LspDiagnosticsSignError", {text = "", numhl = "LspDiagnosticsDefaultError"})
|
function lspSymbol(name, icon)
|
||||||
vim.fn.sign_define("LspDiagnosticsSignWarning", {text = "", numhl = "LspDiagnosticsDefaultWarning"})
|
vim.fn.sign_define("LspDiagnosticsSign" .. name, {text = icon, numhl = "LspDiagnosticsDefaul" .. name})
|
||||||
vim.fn.sign_define("LspDiagnosticsSignInformation", {text = "", numhl = "LspDiagnosticsDefaultInformation"})
|
end
|
||||||
vim.fn.sign_define("LspDiagnosticsSignHint", {text = "", numhl = "LspDiagnosticsDefaultHint"})
|
|
||||||
|
lspSymbol("Error", "")
|
||||||
|
lspSymbol("Warning", "")
|
||||||
|
lspSymbol("Information", "")
|
||||||
|
lspSymbol("Hint", "")
|
||||||
|
|
||||||
vim.lsp.handlers["textDocument/publishDiagnostics"] =
|
vim.lsp.handlers["textDocument/publishDiagnostics"] =
|
||||||
vim.lsp.with(
|
vim.lsp.with(
|
||||||
|
|
Loading…
Reference in New Issue