diff --git a/lua/lsp/init.lua b/lua/lsp/init.lua index e0c077ee..5b244a5c 100644 --- a/lua/lsp/init.lua +++ b/lua/lsp/init.lua @@ -1,19 +1,19 @@ -- TODO figure out why this don't work vim.fn.sign_define( "LspDiagnosticsSignError", - {texthl = "LspDiagnosticsSignError", text = "", numhl = "LspDiagnosticsSignError"} + {texthl = "LspDiagnosticsSignError", text = "", numhl = "LspDiagnosticsSignError"} ) vim.fn.sign_define( "LspDiagnosticsSignWarning", - {texthl = "LspDiagnosticsSignWarning", text = "", numhl = "LspDiagnosticsSignWarning"} + {texthl = "LspDiagnosticsSignWarning", text = "", numhl = "LspDiagnosticsSignWarning"} ) vim.fn.sign_define( "LspDiagnosticsSignHint", - {texthl = "LspDiagnosticsSignHint", text = "", numhl = "LspDiagnosticsSignHint"} + {texthl = "LspDiagnosticsSignHint", text = "", numhl = "LspDiagnosticsSignHint"} ) vim.fn.sign_define( "LspDiagnosticsSignInformation", - {texthl = "LspDiagnosticsSignInformation", text = "", numhl = "LspDiagnosticsSignInformation"} + {texthl = "LspDiagnosticsSignInformation", text = "", numhl = "LspDiagnosticsSignInformation"} ) vim.cmd("nnoremap gd lua vim.lsp.buf.definition()") diff --git a/lua/lv-galaxyline/init.lua b/lua/lv-galaxyline/init.lua index f9ac859b..7fb1a490 100644 --- a/lua/lv-galaxyline/init.lua +++ b/lua/lv-galaxyline/init.lua @@ -108,15 +108,15 @@ gls.left[6] = { } gls.right[1] = { - DiagnosticError = {provider = 'DiagnosticError', icon = '  ', highlight = {colors.error_red, colors.bg}} + DiagnosticError = {provider = 'DiagnosticError', icon = '  ', highlight = {colors.error_red, colors.bg}} } -gls.right[2] = {DiagnosticWarn = {provider = 'DiagnosticWarn', icon = '  ', highlight = {colors.orange, colors.bg}}} +gls.right[2] = {DiagnosticWarn = {provider = 'DiagnosticWarn', icon = '  ', highlight = {colors.orange, colors.bg}}} gls.right[3] = { - DiagnosticHint = {provider = 'DiagnosticHint', icon = '  ', highlight = {colors.vivid_blue, colors.bg}} + DiagnosticHint = {provider = 'DiagnosticHint', icon = '  ', highlight = {colors.vivid_blue, colors.bg}} } -gls.right[4] = {DiagnosticInfo = {provider = 'DiagnosticInfo', icon = '  ', highlight = {colors.info_yellow, colors.bg}}} +gls.right[4] = {DiagnosticInfo = {provider = 'DiagnosticInfo', icon = '  ', highlight = {colors.info_yellow, colors.bg}}} gls.right[5] = { ShowLspClient = { diff --git a/lua/lv-globals.lua b/lua/lv-globals.lua index b968589a..906fb5d0 100644 --- a/lua/lv-globals.lua +++ b/lua/lv-globals.lua @@ -24,7 +24,7 @@ O = { formatter = '', autoformat = false, isort = false, - diagnostics = {virtual_text = true, signs = true, underline = true}, + diagnostics = {virtual_text = {spacing = 0, prefix = ""}, signs = true, underline = true}, analysis = {type_checking = "basic", auto_search_paths = true, use_library_code_types = true} }, dart = {sdk_path = '/usr/lib/dart/bin/snapshots/analysis_server.dart.snapshot'}, @@ -32,7 +32,7 @@ O = { -- @usage can be 'lua-format' formatter = '', autoformat = false, - diagnostics = {virtual_text = true, signs = true, underline = true} + diagnostics = {virtual_text = {spacing = 0, prefix = ""}, signs = true, underline = true} }, sh = { -- @usage can be 'shellcheck' @@ -40,7 +40,7 @@ O = { -- @usage can be 'shfmt' formatter = '', autoformat = false, - diagnostics = {virtual_text = true, signs = true, underline = true} + diagnostics = {virtual_text = {spacing = 0, prefix = ""}, signs = true, underline = true} }, tsserver = { -- @usage can be 'eslint' @@ -48,18 +48,18 @@ O = { -- @usage can be 'prettier' formatter = '', autoformat = false, - diagnostics = {virtual_text = true, signs = true, underline = true} + diagnostics = {virtual_text = {spacing = 0, prefix = ""}, signs = true, underline = true} }, json = { -- @usage can be 'prettier' formatter = '', autoformat = false, - diagnostics = {virtual_text = true, signs = true, underline = true} + diagnostics = {virtual_text = {spacing = 0, prefix = ""}, signs = true, underline = true} }, tailwindls = {filetypes = {'html', 'css', 'scss', 'javascript', 'javascriptreact', 'typescript', 'typescriptreact'}}, - clang = {diagnostics = {virtual_text = true, signs = true, underline = true}}, + clang = {diagnostics = {virtual_text = {spacing = 0, prefix = ""}, signs = true, underline = true}}, ruby = { - diagnostics = {virtualtext = true, signs = true, underline = true}, + diagnostics = {virtualtext = {spacing = 0, prefix = ""}, signs = true, underline = true}, filetypes = {'rb', 'erb', 'rakefile'} } -- css = {formatter = '', autoformat = false, virtual_text = true},