19 lines
847 B
Lua
19 lines
847 B
Lua
|
|
require('window-picker').setup({
|
|
-- Default keys to annotate, keys will be used in order. The default uses the
|
|
-- most accessible keys from the home row and then top row.
|
|
keys = 'alskdjfhgwoeiruty',
|
|
-- Swap windows by holding shift + letter
|
|
swap_shift = true,
|
|
-- Windows containing filetype to exclude
|
|
exclude = { qf = true, NvimTree = true, aerial = true },
|
|
-- Flash the cursor line of the newly focused window for 300ms.
|
|
-- Set to 0 or false to disable.
|
|
flash_duration = 300,
|
|
})
|
|
|
|
vim.keymap.set('n', "<leader>a", "<cmd>WindowPick<cr>", { desc = "Windows Pick" })
|
|
vim.keymap.set('n', "<C-w>a", "<cmd>WindowPick<cr>", { desc = "Windows Pick" })
|
|
vim.keymap.set('n', "<C-w>D", "<cmd>WindowZap<cr>", { desc = "Windows Delete" })
|
|
vim.keymap.set('n', "<C-w>S", "<cmd>WindowSwap<cr>", { desc = "Windows Swap" })
|