The monolithic vim.pack.add() table in init.lua was removed and each plugin/*.lua file now declares its own dependencies via vim.pack.add() at the top. tools.lua was decomposed into per-plugin files (cmake.lua, jupynvim.lua, just.lua, kulala.lua, mise.lua, neogit.lua, sshfs.lua, trouble.lua, undotree.lua, zoxide.lua) each with their own config and keymaps. This makes plugin files self-contained and easier to maintain.
22 lines
932 B
Lua
22 lines
932 B
Lua
vim.pack.add({
|
|
{ src = 'https://github.com/ten3roberts/window-picker.nvim' },
|
|
})
|
|
|
|
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" })
|