refactor(nvim): disable lsp line highlight

This commit is contained in:
Price Hiller 2022-09-27 11:07:17 -05:00
parent 063a728c27
commit f73f157d95

View File

@ -2,28 +2,28 @@ local M = {}
M.setup = function() M.setup = function()
local function lspSymbol(name, icon, linehlbg) local function lspSymbol(name, icon, linehlbg)
local hl = 'DiagnosticSign' .. name local hl = "DiagnosticSign" .. name
local linehl = 'DiagnosticSignLineHl' .. name -- local linehl = 'DiagnosticSignLineHl' .. name
vim.api.nvim_set_hl(0, linehl, { -- vim.api.nvim_set_hl(0, linehl, {
bg = linehlbg, -- bg = linehlbg,
}) -- })
vim.fn.sign_define(hl, { text = icon, numhl = hl, texthl = hl, linehl = linehl }) vim.fn.sign_define(hl, { text = icon, numhl = hl, texthl = hl, linehl = linehl })
end end
lspSymbol('Error', '', '#2d202a') lspSymbol("Error", "", "#2d202a")
lspSymbol('Warn', '', '#2e2a2d') lspSymbol("Warn", "", "#2e2a2d")
lspSymbol('Info', '', '#192b38') lspSymbol("Info", "", "#192b38")
lspSymbol('Hint', '', '#1a2b32') lspSymbol("Hint", "", "#1a2b32")
local border = { local border = {
{ '', 'FloatBorder' }, { "", "FloatBorder" },
{ '', 'FloatBorder' }, { "", "FloatBorder" },
{ '', 'FloatBorder' }, { "", "FloatBorder" },
{ '', 'FloatBorder' }, { "", "FloatBorder" },
{ '', 'FloatBorder' }, { "", "FloatBorder" },
{ '', 'FloatBorder' }, { "", "FloatBorder" },
{ '', 'FloatBorder' }, { "", "FloatBorder" },
{ '', 'FloatBorder' }, { "", "FloatBorder" },
} }
local orig_util_open_floating_preview = vim.lsp.util.open_floating_preview local orig_util_open_floating_preview = vim.lsp.util.open_floating_preview
@ -40,11 +40,11 @@ M.setup = function()
update_in_insert = false, update_in_insert = false,
float = { float = {
focusable = false, focusable = false,
style = 'minimal', style = "minimal",
border = 'rounded', border = "rounded",
source = 'always', source = "always",
header = '', header = "",
prefix = '', prefix = "",
}, },
}) })
end end