init
This commit is contained in:
parent
c3d1fb646a
commit
67d9542ca5
22 changed files with 611 additions and 221 deletions
42
lua/plugins/keybinds.lua
Normal file
42
lua/plugins/keybinds.lua
Normal file
|
@ -0,0 +1,42 @@
|
|||
return {
|
||||
{
|
||||
"folke/which-key.nvim",
|
||||
event = "VeryLazy",
|
||||
opts = {},
|
||||
keys = {
|
||||
{
|
||||
"<leader>\\",
|
||||
function()
|
||||
require("which-key").show { global = false }
|
||||
end,
|
||||
desc = "Buffer Local Keymaps (which-key)",
|
||||
},
|
||||
{
|
||||
"K",
|
||||
":m '<-2<CR>gv=gv",
|
||||
mode = "v",
|
||||
},
|
||||
{
|
||||
"J",
|
||||
":m '>+1<CR>gv=gv",
|
||||
mode = "v",
|
||||
},
|
||||
{
|
||||
"<C-d>",
|
||||
"<C-d>zz",
|
||||
desc = "Half page jump center",
|
||||
},
|
||||
{
|
||||
"<C-u>",
|
||||
"<C-u>zz",
|
||||
desc = "Half page jump center",
|
||||
},
|
||||
{
|
||||
"<leader>p",
|
||||
'"_dP',
|
||||
desc = "Stolen from prime",
|
||||
mode = "x",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue