feat: add window picker

This commit is contained in:
David Bell 2023-04-05 08:05:48 +01:00
parent fb958b9e97
commit 716e4e2902
No known key found for this signature in database
GPG Key ID: EB8E7B08C6DE0FD7
1 changed files with 5 additions and 0 deletions

View File

@ -493,5 +493,10 @@ cmp.setup {
}, },
} }
vim.keymap.set("n", "<leader>ww", function()
local picked_window_id = picker.pick_window() or vim.api.nvim_get_current_win()
vim.api.nvim_set_current_win(picked_window_id)
end, { desc = "Pick a window" })
-- The line beneath this is called `modeline`. See `:help modeline` -- The line beneath this is called `modeline`. See `:help modeline`
-- vim: ts=2 sts=2 sw=2 et -- vim: ts=2 sts=2 sw=2 et