From 6ff7fa8a24b7253673ed72d419cb8cfa3ca2b10b Mon Sep 17 00:00:00 2001 From: Huck Boles Date: Mon, 17 Apr 2023 10:41:20 -0500 Subject: [PATCH] diagnostic keybindings --- lua/map.lua | 2 ++ lua/plugins.lua | 2 +- lua/theme.lua | 21 ++++++++++++++------- 3 files changed, 17 insertions(+), 8 deletions(-) diff --git a/lua/map.lua b/lua/map.lua index b56c567..222793d 100644 --- a/lua/map.lua +++ b/lua/map.lua @@ -42,5 +42,7 @@ vim.keymap.set('t', '', [[]], opts) -- lsp diagnostic navigation vim.keymap.set('n', 'n', vim.diagnostic.goto_next, opts) vim.keymap.set('n', 'p', vim.diagnostic.goto_prev, opts) +vim.keymap.set('n', 'd', vim.diagnostic.hide, opts) +vim.keymap.set('n', 'D', vim.diagnostic.show, opts) vim.keymap.set('n', 'R', vim.lsp.buf.rename, opts) vim.keymap.set('n', 'k', vim.lsp.buf.hover) diff --git a/lua/plugins.lua b/lua/plugins.lua index 5915d5c..ac3c652 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -45,7 +45,7 @@ return { { 'akinsho/toggleterm.nvim', - keys = { { '', 'ToggleTerm' } }, + keys = { { '', 'ToggleTerm' } }, opts = { shade_terminals = false, size = 10 diff --git a/lua/theme.lua b/lua/theme.lua index 01415fe..08955d4 100644 --- a/lua/theme.lua +++ b/lua/theme.lua @@ -106,6 +106,8 @@ highlight("StatusLine", white, black, c_grey, c_white, bold, nil) highlight("SignColumn", blue, black, c_blue, c_black, nil, nil) highlight("ColorColumn", black, dark_yellow, c_black, c_dark_yellow, nil, nil) highlight("Directory", blue, nil, c_blue, nil, bold, nil) +highlight("Conceal", grey, black, c_grey, c_black, nil, nil) +highlight("CursorLine", white, grey, c_white, c_grey, nil, nil) -- Spelling highlight("SpellBad", red, black, c_red, c_black, underline, red) @@ -199,6 +201,11 @@ highlight("RedrawDebugClear", black, dark_yellow, c_black, c_dark_yellow, nil, n highlight("RedrawDebugComposed", black, green, c_black, c_green, nil, nil) highlight("RedrawDebugRecompose", black, red, c_black, c_red, nil, nil) +-- Lazy.nvim +highlight("LazyButton", white, black, c_white, c_black, nil, nil) +highlight("LazyButtonActive", white, black, c_white, c_black, bold, nil) +highlight("LazyH1", white, black, c_white, c_black, bold, nil) + -- Lualine highlight("lualine_a_visual", black, yellow, c_black, c_yellow, nil, nil) highlight("lualine_b_visual", yellow, black, c_yellow, c_black, nil, nil) @@ -223,7 +230,7 @@ highlight("lualine_b_inactive", grey, black, c_grey, c_black, nil, nil) highlight("lualine_c_inactive", grey, black, c_grey, c_black, nil, nil) highlight("lualine_y_diagnostics_error_normal", red, black, c_red, c_black, nil, nil) -highlight("lualine_y_diagnostics_warning_normal", dark_yellow, black, c_dark_yellow, c_black, nil, nil) +highlight("lualine_y_diagnostics_warn_normal", dark_yellow, black, c_dark_yellow, c_black, nil, nil) highlight("lualine_y_diagnostics_info_normal", blue, black, c_blue, c_black, nil, nil) highlight("lualine_y_diagnostics_hint_normal", grey, black, c_grey, c_black, nil, nil) highlight("lualine_c_diff_added_normal", green, black, c_green, c_black, nil, nil) @@ -231,7 +238,7 @@ highlight("lualine_c_diff_modified_normal", yellow, black, c_yellow, c_black, ni highlight("lualine_c_diff_removed_normal", blue, black, c_blue, c_black, nil, nil) highlight("lualine_y_diagnostics_error_insert", red, black, c_red, c_black, nil, nil) -highlight("lualine_y_diagnostics_warning_insert", dark_yellow, black, c_dark_yellow, c_black, nil, nil) +highlight("lualine_y_diagnostics_warn_insert", dark_yellow, black, c_dark_yellow, c_black, nil, nil) highlight("lualine_y_diagnostics_info_insert", blue, black, c_blue, c_black, nil, nil) highlight("lualine_y_diagnostics_hint_insert", grey, black, c_grey, c_black, nil, nil) highlight("lualine_c_diff_added_insert", green, black, c_green, c_black, nil, nil) @@ -239,7 +246,7 @@ highlight("lualine_c_diff_modified_insert", yellow, black, c_yellow, c_black, ni highlight("lualine_c_diff_removed_insert", blue, black, c_blue, c_black, nil, nil) highlight("lualine_y_diagnostics_error_visual", red, black, c_red, c_black, nil, nil) -highlight("lualine_y_diagnostics_warning_visual", dark_yellow, black, c_dark_yellow, c_black, nil, nil) +highlight("lualine_y_diagnostics_warn_visual", dark_yellow, black, c_dark_yellow, c_black, nil, nil) highlight("lualine_y_diagnostics_info_visual", blue, black, c_blue, c_black, nil, nil) highlight("lualine_y_diagnostics_hint_visual", grey, black, c_grey, c_black, nil, nil) highlight("lualine_c_diff_added_visual", green, black, c_green, c_black, nil, nil) @@ -247,7 +254,7 @@ highlight("lualine_c_diff_modified_visual", yellow, black, c_yellow, c_black, ni highlight("lualine_c_diff_removed_visual", blue, black, c_blue, c_black, nil, nil) highlight("lualine_y_diagnostics_error_replace", red, black, c_red, c_black, nil, nil) -highlight("lualine_y_diagnostics_warning_replace", dark_yellow, black, c_dark_yellow, c_black, nil, nil) +highlight("lualine_y_diagnostics_warn_replace", dark_yellow, black, c_dark_yellow, c_black, nil, nil) highlight("lualine_y_diagnostics_info_replace", blue, black, c_blue, c_black, nil, nil) highlight("lualine_y_diagnostics_hint_replace", grey, black, c_grey, c_black, nil, nil) highlight("lualine_c_diff_added_replace", green, black, c_green, c_black, nil, nil) @@ -255,7 +262,7 @@ highlight("lualine_c_diff_modified_replace", yellow, black, c_yellow, c_black, n highlight("lualine_c_diff_removed_replace", blue, black, c_blue, c_black, nil, nil) highlight("lualine_y_diagnostics_error_command", red, black, c_red, c_black, nil, nil) -highlight("lualine_y_diagnostics_warning_command", dark_yellow, black, c_dark_yellow, c_black, nil, nil) +highlight("lualine_y_diagnostics_warn_command", dark_yellow, black, c_dark_yellow, c_black, nil, nil) highlight("lualine_y_diagnostics_info_command", blue, black, c_blue, c_black, nil, nil) highlight("lualine_y_diagnostics_hint_command", grey, black, c_grey, c_black, nil, nil) highlight("lualine_c_diff_added_command", green, black, c_green, c_black, nil, nil) @@ -263,7 +270,7 @@ highlight("lualine_c_diff_modified_command", yellow, black, c_yellow, c_black, n highlight("lualine_c_diff_removed_command", blue, black, c_blue, c_black, nil, nil) highlight("lualine_y_diagnostics_error_terminal", red, black, c_red, c_black, nil, nil) -highlight("lualine_y_diagnostics_warning_terminal", dark_yellow, black, c_dark_yellow, c_black, nil, nil) +highlight("lualine_y_diagnostics_warn_terminal", dark_yellow, black, c_dark_yellow, c_black, nil, nil) highlight("lualine_y_diagnostics_info_terminal", blue, black, c_blue, c_black, nil, nil) highlight("lualine_y_diagnostics_hint_terminal", grey, black, c_grey, c_black, nil, nil) highlight("lualine_c_diff_added_terminal", green, black, c_green, c_black, nil, nil) @@ -271,7 +278,7 @@ highlight("lualine_c_diff_modified_terminal", yellow, black, c_yellow, c_black, highlight("lualine_c_diff_removed_terminal", blue, black, c_blue, c_black, nil, nil) highlight("lualine_y_diagnostics_error_inactive", red, black, c_red, c_black, nil, nil) -highlight("lualine_y_diagnostics_warning_inactive", dark_yellow, black, c_dark_yellow, c_black, nil, nil) +highlight("lualine_y_diagnostics_warn_inactive", dark_yellow, black, c_dark_yellow, c_black, nil, nil) highlight("lualine_y_diagnostics_info_inactive", blue, black, c_blue, c_black, nil, nil) highlight("lualine_y_diagnostics_hint_inactive", grey, black, c_grey, c_black, nil, nil) highlight("lualine_c_diff_added_inactive", green, black, c_green, c_black, nil, nil) -- 2.45.2