feat(nvim): updated config to use vim.pack instead of lazy
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
|
||||
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" })
|
||||
Reference in New Issue
Block a user