displace.nvim is a Neovim plugin that enhances window navigation by displaying overlayed window numbers in each window of the current tab. This allows users to quickly switch between windows using a simple numeric input.
- Displays window numbers in the center of each window in the current tab.
- Allows window selection by pressing the corresponding number key.
demo.webm
To install displace.nvim, you can use any Neovim plugin manager. Here are some examples:
return {
"nicholascross/displace.nvim",
config = function()
require("displace").setup({
-- No configuration is currently available
})
end,
}After installation and setup, you can invoke the window navigator by using the following command:
:Displace
Once you run the command, it will display the window numbers. You can then press the corresponding number key to switch to the desired window.
More likely you will want to have a keymap specified; here is an example which-key configuration.
{ "<leader>q", require("displace.navigator").show_window_numbers, desc = "Navigate to window" },displace.nvim is licensed under the MIT License. See LICENSE for more details.
If you would like to contribute to displace.nvim, feel free to submit issues or create a pull request. Your contributions are welcome!