https://github.com/hrsh7th/nvim-swm
Smart window movement in neovim.
https://github.com/hrsh7th/nvim-swm
neovim neovim-plugin
Last synced: 6 months ago
JSON representation
Smart window movement in neovim.
- Host: GitHub
- URL: https://github.com/hrsh7th/nvim-swm
- Owner: hrsh7th
- Created: 2025-01-31T05:29:57.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-02-11T01:58:54.000Z (8 months ago)
- Last Synced: 2025-03-28T14:41:12.272Z (7 months ago)
- Topics: neovim, neovim-plugin
- Language: Lua
- Homepage:
- Size: 5.86 KB
- Stars: 16
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nvim-swm
Smart window movement in neovim.
You can move the current cursor position to the nearest window (including
floating windows, taking z-index into account) with `h, j, k, l`.## Usage
```lua
local swm = require('swm')
vim.keymap.set('n', 'h', swm.h)
vim.keymap.set('n', 'j', swm.j)
vim.keymap.set('n', 'k', swm.k)
vim.keymap.set('n', 'l', swm.l)
```