added window management to leader key
This commit is contained in:
parent
df5eb0efb2
commit
de6db6ac97
1 changed files with 21 additions and 0 deletions
|
|
@ -32,8 +32,29 @@ local keymap = {
|
|||
g = { '<Cmd>Telescope git_commits<CR>', 'Commits' },
|
||||
b = { '<Cmd>Telescope git_branches<CR>', 'Branches' },
|
||||
s = { '<Cmd>Telescope git_status<CR>', 'Status' },
|
||||
},
|
||||
w = {
|
||||
name = '+window',
|
||||
w = 'Pick Window',
|
||||
s = "Split window",
|
||||
v = "Split window vertically",
|
||||
q = "Quit a window",
|
||||
T = "Break out into a new tab",
|
||||
x = "Swap current with next",
|
||||
["-"] = "Decrease height",
|
||||
["+"] = "Increase height",
|
||||
["<lt>"] = "Decrease width",
|
||||
[">"] = "Increase width",
|
||||
["|"] = "Max out the width",
|
||||
["="] = "Equally high and wide",
|
||||
h = "Go to the left window",
|
||||
l = "Go to the right window",
|
||||
k = "Go to the up window",
|
||||
j = "Go to the down window",
|
||||
}
|
||||
}
|
||||
-- Map window keys to leader w
|
||||
vim.cmd[[nmap <leader>w <C-w>]]
|
||||
|
||||
whichkey.setup {
|
||||
hide_statusline = false,
|
||||
|
|
|
|||
Loading…
Reference in a new issue