refactor(nvim): include leading key desc for which key

This commit is contained in:
Price Hiller 2024-02-11 17:28:25 -06:00
parent d51b03b8bf
commit a50439f8db
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8
6 changed files with 20 additions and 11 deletions

View File

@ -21,9 +21,10 @@ return {
}, },
ft = { "sql" }, ft = { "sql" },
keys = { keys = {
{ "<leader>aa", "<cmd>DBUIToggle<CR>", desc = "Dadbod: Toggle UI" }, { "<leader>a", desc = "Dadbod" },
{ "<leader>aa", "<cmd>DBUIToggle<CR>", desc = "Dadbod: Toggle UI" },
{ "<leader>ac", "<cmd>DBUIAddConnection<CR>", desc = "Dadbod: Add Connection" }, { "<leader>ac", "<cmd>DBUIAddConnection<CR>", desc = "Dadbod: Add Connection" },
{ "<leader>ab", "<cmd>DBUIFindBuffer<CR>", desc = "Dadbod: Find Buffer" }, { "<leader>ab", "<cmd>DBUIFindBuffer<CR>", desc = "Dadbod: Find Buffer" },
}, },
init = function() init = function()
vim.g.db_ui_use_nerd_fonts = 1 vim.g.db_ui_use_nerd_fonts = 1

View File

@ -2,6 +2,7 @@ return {
{ {
"sindrets/diffview.nvim", "sindrets/diffview.nvim",
keys = { keys = {
{ "<localleader>d", desc = "Diff View" },
{ "<localleader>dd", "<cmd>DiffviewOpen<CR>", desc = "Diff View: Open" }, { "<localleader>dd", "<cmd>DiffviewOpen<CR>", desc = "Diff View: Open" },
{ "<localleader>dh", "<cmd>DiffviewFileHistory<CR>", desc = "Diff View: File History" }, { "<localleader>dh", "<cmd>DiffviewFileHistory<CR>", desc = "Diff View: File History" },
}, },

View File

@ -10,6 +10,7 @@ return {
"nvim-neotest/neotest-plenary" "nvim-neotest/neotest-plenary"
}, },
keys = { keys = {
{ "<localleader>n", desc = "> Neotest" },
{ "<localleader>nrr", "<cmd>Neotest run<CR>", desc = "Neotest: Run Test" }, { "<localleader>nrr", "<cmd>Neotest run<CR>", desc = "Neotest: Run Test" },
{ "<localleader>nrl", "<cmd>Neotest run file<CR>", desc = "Neotest: Run Tests in File" }, { "<localleader>nrl", "<cmd>Neotest run file<CR>", desc = "Neotest: Run Tests in File" },
{ "<localleader>nrl", "<cmd>Neotest run last<CR>", desc = "Neotest: Run Last Tests" }, { "<localleader>nrl", "<cmd>Neotest run last<CR>", desc = "Neotest: Run Last Tests" },
@ -23,8 +24,8 @@ return {
opts = function() opts = function()
return { return {
diagnostic = { diagnostic = {
enable = true, enable = true,
severity = 1 severity = 1
}, },
discovery = { discovery = {
concurrent = 4 concurrent = 4

View File

@ -13,7 +13,7 @@ return {
"NoNeckPainToggleRightSide", "NoNeckPainToggleRightSide",
}, },
keys = { keys = {
{ "<leader>bb", "<cmd>NoNeckPain<cr>", desc = "NoNeckPain: Toggle" }, { "<localleader>b", "<cmd>NoNeckPain<cr>", desc = "NoNeckPain: Toggle" },
}, },
}, },
} }

View File

@ -36,12 +36,12 @@ return {
"~/Git/College/**/*", "~/Git/College/**/*",
"~/Notes/**/*", "~/Notes/**/*",
}, },
notifications = { -- notifications = {
enabled = true, -- enabled = true,
cron_enabled = true, -- cron_enabled = true,
repeater_reminder_time = { 2880, 1440, 720, 360, 180, 60, 30, 15, 10, 5, 0 }, -- repeater_reminder_time = { 2880, 1440, 720, 360, 180, 60, 30, 15, 10, 5, 0 },
deadline_warning_reminder_time = { 2880, 1440, 720, 360, 180, 60, 30, 15, 10, 5, 0 } -- deadline_warning_reminder_time = { 2880, 1440, 720, 360, 180, 60, 30, 15, 10, 5, 0 }
}, -- },
org_id_link_to_org_use_id = true, org_id_link_to_org_use_id = true,
org_default_notes_file = "~/Notes/notes.org", org_default_notes_file = "~/Notes/notes.org",
org_agenda_start_day = "-1d", org_agenda_start_day = "-1d",
@ -57,6 +57,11 @@ return {
description = "Todo", description = "Todo",
template = "* TODO %?\n %u", template = "* TODO %?\n %u",
}, },
n = {
description = "Note",
template = "* %? :note:",
target = "~/Notes/notes.org"
},
j = { j = {
description = "Journal", description = "Journal",
template = "\n* %? %U :journal:", template = "\n* %? %U :journal:",

View File

@ -3,6 +3,7 @@ return {
"dhruvasagar/vim-table-mode", "dhruvasagar/vim-table-mode",
keys = { keys = {
{ ";;", "<cmd>TableModeRealign<CR>", desc = "Table Mode: Realign" }, { ";;", "<cmd>TableModeRealign<CR>", desc = "Table Mode: Realign" },
{ ";t", desc = "> Table Mode" },
}, },
lazy = false, lazy = false,
init = function() init = function()