From f73f157d95377038a71f8e61906fd94c074a20a6 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Tue, 27 Sep 2022 11:07:17 -0500 Subject: [PATCH] refactor(nvim): disable lsp line highlight --- .../primary/config/lua/core/lsp.lua | 44 +++++++++---------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/dots/.nvim-environments/primary/config/lua/core/lsp.lua b/dots/.nvim-environments/primary/config/lua/core/lsp.lua index 1033c745..7706554d 100644 --- a/dots/.nvim-environments/primary/config/lua/core/lsp.lua +++ b/dots/.nvim-environments/primary/config/lua/core/lsp.lua @@ -2,28 +2,28 @@ local M = {} M.setup = function() local function lspSymbol(name, icon, linehlbg) - local hl = 'DiagnosticSign' .. name - local linehl = 'DiagnosticSignLineHl' .. name - vim.api.nvim_set_hl(0, linehl, { - bg = linehlbg, - }) + local hl = "DiagnosticSign" .. name + -- local linehl = 'DiagnosticSignLineHl' .. name + -- vim.api.nvim_set_hl(0, linehl, { + -- bg = linehlbg, + -- }) vim.fn.sign_define(hl, { text = icon, numhl = hl, texthl = hl, linehl = linehl }) end - lspSymbol('Error', '', '#2d202a') - lspSymbol('Warn', '', '#2e2a2d') - lspSymbol('Info', '', '#192b38') - lspSymbol('Hint', '', '#1a2b32') + lspSymbol("Error", "", "#2d202a") + lspSymbol("Warn", "", "#2e2a2d") + lspSymbol("Info", "", "#192b38") + lspSymbol("Hint", "", "#1a2b32") 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 @@ -40,11 +40,11 @@ M.setup = function() update_in_insert = false, float = { focusable = false, - style = 'minimal', - border = 'rounded', - source = 'always', - header = '', - prefix = '', + style = "minimal", + border = "rounded", + source = "always", + header = "", + prefix = "", }, }) end