mirror of
https://github.com/zoriya/flake.git
synced 2026-06-04 03:06:54 +00:00
Fix missing descriptions on keymaps
This commit is contained in:
@@ -38,12 +38,12 @@ return {
|
|||||||
"akinsho/git-conflict.nvim",
|
"akinsho/git-conflict.nvim",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
keys = {
|
keys = {
|
||||||
{ "gxo", "<Plug>(git-conflict-ours)", "Accept ours" },
|
{ "gxo", "<Plug>(git-conflict-ours)", desc = "Accept ours" },
|
||||||
{ "gxt", "<Plug>(git-conflict-theirs)", "Accept theirs" },
|
{ "gxt", "<Plug>(git-conflict-theirs)", desc = "Accept theirs" },
|
||||||
{ "gxb", "<Plug>(git-conflict-both)", "Accept both" },
|
{ "gxb", "<Plug>(git-conflict-both)", desc = "Accept both" },
|
||||||
{ "gx0", "<Plug>(git-conflict-none)", "Accept none" },
|
{ "gx0", "<Plug>(git-conflict-none)", desc = "Accept none" },
|
||||||
{ "]x", "<Plug>(git-conflict-prev-conflict)", "Previous conflict" },
|
{ "]x", "<Plug>(git-conflict-prev-conflict)", desc = "Previous conflict" },
|
||||||
{ "[x", "<Plug>(git-conflict-next-conflict)", "Next conflict" },
|
{ "[x", "<Plug>(git-conflict-next-conflict)", desc = "Next conflict" },
|
||||||
},
|
},
|
||||||
opts = {
|
opts = {
|
||||||
default_mappings = false,
|
default_mappings = false,
|
||||||
|
|||||||
@@ -80,18 +80,21 @@ return {
|
|||||||
local wk = require("which-key")
|
local wk = require("which-key")
|
||||||
wk.setup(opts)
|
wk.setup(opts)
|
||||||
|
|
||||||
wk.register({
|
|
||||||
mode = { "n", "v" },
|
|
||||||
["g"] = { name = "+goto" },
|
|
||||||
["]"] = { name = "+next" },
|
|
||||||
["["] = { name = "+prev" },
|
|
||||||
["<leader>g"] = { name = "+git" },
|
|
||||||
["<leader>l"] = { name = "+lsp" },
|
|
||||||
})
|
|
||||||
|
|
||||||
local uwk = require("unimpaired-which-key")
|
local uwk = require("unimpaired-which-key")
|
||||||
wk.register(uwk.normal_mode)
|
wk.register(uwk.normal_mode)
|
||||||
wk.register(uwk.normal_and_visual_mode, { mode = { "n", "v" } })
|
wk.register(uwk.normal_and_visual_mode, { mode = { "n", "v" } })
|
||||||
|
|
||||||
|
wk.register({
|
||||||
|
gx = "Git conflict",
|
||||||
|
})
|
||||||
|
wk.register({
|
||||||
|
mode = { "n", "v" },
|
||||||
|
["g"] = { name = "+goto" },
|
||||||
|
["]"] = { name = "+next" },
|
||||||
|
["["] = { name = "+prev" },
|
||||||
|
["<leader>g"] = { name = "+git" },
|
||||||
|
["<leader>l"] = { name = "+lsp" },
|
||||||
|
})
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -138,9 +141,9 @@ return {
|
|||||||
{
|
{
|
||||||
"folke/trouble.nvim",
|
"folke/trouble.nvim",
|
||||||
keys = {
|
keys = {
|
||||||
{ "<leader>ld", "<cmd>Trouble document_diagnostics<cr>", "Document Diagnostics" },
|
{ "<leader>ld", "<cmd>Trouble document_diagnostics<cr>", desc = "Document Diagnostics" },
|
||||||
{ "<leader>lw", "<cmd>Trouble workspace_diagnostics<cr>", "Workspace Diagnostics" },
|
{ "<leader>lw", "<cmd>Trouble workspace_diagnostics<cr>", desc = "Workspace Diagnostics" },
|
||||||
{ "<leader>lt", "<cmd>TroubleToggle<CR>", "Toogle trouble window" },
|
{ "<leader>lt", "<cmd>TroubleToggle<CR>", desc = "Toogle trouble window" },
|
||||||
},
|
},
|
||||||
opts = {
|
opts = {
|
||||||
auto_close = true,
|
auto_close = true,
|
||||||
|
|||||||
Reference in New Issue
Block a user