Improve LSP Icons (#331)

This commit is contained in:
Andrew Fridley 2021-05-03 15:39:03 -05:00 committed by GitHub
parent 3adcfdc034
commit a69bf73fd2
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 15 deletions

View file

@ -1,19 +1,19 @@
-- TODO figure out why this don't work -- TODO figure out why this don't work
vim.fn.sign_define( vim.fn.sign_define(
"LspDiagnosticsSignError", "LspDiagnosticsSignError",
{texthl = "LspDiagnosticsSignError", text = "", numhl = "LspDiagnosticsSignError"} {texthl = "LspDiagnosticsSignError", text = "", numhl = "LspDiagnosticsSignError"}
) )
vim.fn.sign_define( vim.fn.sign_define(
"LspDiagnosticsSignWarning", "LspDiagnosticsSignWarning",
{texthl = "LspDiagnosticsSignWarning", text = "", numhl = "LspDiagnosticsSignWarning"} {texthl = "LspDiagnosticsSignWarning", text = "", numhl = "LspDiagnosticsSignWarning"}
) )
vim.fn.sign_define( vim.fn.sign_define(
"LspDiagnosticsSignHint", "LspDiagnosticsSignHint",
{texthl = "LspDiagnosticsSignHint", text = "", numhl = "LspDiagnosticsSignHint"} {texthl = "LspDiagnosticsSignHint", text = "", numhl = "LspDiagnosticsSignHint"}
) )
vim.fn.sign_define( vim.fn.sign_define(
"LspDiagnosticsSignInformation", "LspDiagnosticsSignInformation",
{texthl = "LspDiagnosticsSignInformation", text = "", numhl = "LspDiagnosticsSignInformation"} {texthl = "LspDiagnosticsSignInformation", text = "", numhl = "LspDiagnosticsSignInformation"}
) )
vim.cmd("nnoremap <silent> gd <cmd>lua vim.lsp.buf.definition()<CR>") vim.cmd("nnoremap <silent> gd <cmd>lua vim.lsp.buf.definition()<CR>")

View file

@ -108,15 +108,15 @@ gls.left[6] = {
} }
gls.right[1] = { 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] = { 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] = { gls.right[5] = {
ShowLspClient = { ShowLspClient = {

View file

@ -24,7 +24,7 @@ O = {
formatter = '', formatter = '',
autoformat = false, autoformat = false,
isort = 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} 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'}, dart = {sdk_path = '/usr/lib/dart/bin/snapshots/analysis_server.dart.snapshot'},
@ -32,7 +32,7 @@ O = {
-- @usage can be 'lua-format' -- @usage can be 'lua-format'
formatter = '', formatter = '',
autoformat = false, autoformat = false,
diagnostics = {virtual_text = true, signs = true, underline = true} diagnostics = {virtual_text = {spacing = 0, prefix = ""}, signs = true, underline = true}
}, },
sh = { sh = {
-- @usage can be 'shellcheck' -- @usage can be 'shellcheck'
@ -40,7 +40,7 @@ O = {
-- @usage can be 'shfmt' -- @usage can be 'shfmt'
formatter = '', formatter = '',
autoformat = false, autoformat = false,
diagnostics = {virtual_text = true, signs = true, underline = true} diagnostics = {virtual_text = {spacing = 0, prefix = ""}, signs = true, underline = true}
}, },
tsserver = { tsserver = {
-- @usage can be 'eslint' -- @usage can be 'eslint'
@ -48,18 +48,18 @@ O = {
-- @usage can be 'prettier' -- @usage can be 'prettier'
formatter = '', formatter = '',
autoformat = false, autoformat = false,
diagnostics = {virtual_text = true, signs = true, underline = true} diagnostics = {virtual_text = {spacing = 0, prefix = ""}, signs = true, underline = true}
}, },
json = { json = {
-- @usage can be 'prettier' -- @usage can be 'prettier'
formatter = '', formatter = '',
autoformat = false, 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'}}, 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 = { ruby = {
diagnostics = {virtualtext = true, signs = true, underline = true}, diagnostics = {virtualtext = {spacing = 0, prefix = ""}, signs = true, underline = true},
filetypes = {'rb', 'erb', 'rakefile'} filetypes = {'rb', 'erb', 'rakefile'}
} }
-- css = {formatter = '', autoformat = false, virtual_text = true}, -- css = {formatter = '', autoformat = false, virtual_text = true},