chore: format source code

This commit is contained in:
github-actions[bot] 2021-09-24 09:30:20 +00:00 committed by siduck76
parent ee586047e5
commit 3d0a0e53f7
4 changed files with 37 additions and 41 deletions

View file

@ -1,5 +1,5 @@
local present1, nvim_lsp = pcall(require, "lspconfig")
local overrides = require("core.hooks").createOverrides("lsp")
local overrides = require("core.hooks").createOverrides "lsp"
if not present1 then
return
@ -82,7 +82,7 @@ lspSymbol("Information", "")
lspSymbol("Hint", "")
lspSymbol("Warning", "")
local lsp_publish_diagnostics_options = overrides.get('publish_diagnostics', {
local lsp_publish_diagnostics_options = overrides.get("publish_diagnostics", {
virtual_text = {
prefix = "",
spacing = 0,
@ -91,7 +91,10 @@ local lsp_publish_diagnostics_options = overrides.get('publish_diagnostics', {
underline = true,
update_in_insert = false, -- update diagnostics insert mode
})
vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(vim.lsp.diagnostic.on_publish_diagnostics, lsp_publish_diagnostics_options)
vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(
vim.lsp.diagnostic.on_publish_diagnostics,
lsp_publish_diagnostics_options
)
vim.lsp.handlers["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, {
border = "single",
})