diff options
| author | Andrew Fridley <[email protected]> | 2021-05-03 15:39:03 -0500 | 
|---|---|---|
| committer | GitHub <[email protected]> | 2021-05-03 16:39:03 -0400 | 
| commit | a69bf73fd2fe28760b632a2e7344e4659de54910 (patch) | |
| tree | f068e1afb4995e593e1d1eb526d0d91c4a82f77e /lua | |
| parent | 3adcfdc0346546c102c370aa12549fafe2be5cb8 (diff) | |
Improve LSP Icons (#331)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lsp/init.lua | 8 | ||||
| -rw-r--r-- | lua/lv-galaxyline/init.lua | 8 | ||||
| -rw-r--r-- | lua/lv-globals.lua | 14 | 
3 files changed, 15 insertions, 15 deletions
| 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 <silent> gd <cmd>lua vim.lsp.buf.definition()<CR>") 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}, | 
