Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/delphinus/dwm.nvim
https://github.com/delphinus/dwm.nvim
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/delphinus/dwm.nvim
- Owner: delphinus
- Created: 2021-03-31T06:02:55.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-04T06:21:12.000Z (almost 2 years ago)
- Last Synced: 2024-08-07T18:37:04.142Z (3 months ago)
- Language: Lua
- Homepage:
- Size: 30.3 KB
- Stars: 12
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dwm.nvim
Yet another implementation for [dwm.vim][].
[dwm.vim]: https://github.com/spolu/dwm.vim
## What's this?
A port for Neovim to implement [dwm.vim][]'s features and more.
***This plugin is experimental.***
## Usage
```lua
-- for packer.nvim
{
'delphinus/dwm.nvim',
config = function()
local dwm = require'dwm'
dwm.setup{
key_maps = false,
master_pane_count = 1,
master_pane_width = '60%',
}
vim.keymap.set('n', '', 'w')
vim.keymap.set('n', '', 'W')
vim.keymap.set('n', '', dwm.focus)
vim.keymap.set('n', '', dwm.focus)
vim.keymap.set('n', '', dwm.focus)
vim.keymap.set('n', '', dwm.grow)
vim.keymap.set('n', '', dwm.shrink)
vim.keymap.set('n', '', dwm.new)
vim.keymap.set('n', '', dwm.rotateLeft)
vim.keymap.set('n', '', dwm.rotate)
vim.keymap.set('n', '', function()
vim.notify('closing!', vim.log.levels.INFO)
dwm.close()
end)-- For users that do not have vim.keymap
-- dwm.map('', 'w')
-- dwm.map('', 'W')
-- dwm.map('', dwm.focus)
-- dwm.map('', dwm.focus)
-- dwm.map('', dwm.focus)
-- dwm.map('', dwm.grow)
-- dwm.map('', dwm.shrink)
-- dwm.map('', dwm.new)
-- dwm.map('', dwm.rotateLeft)
-- dwm.map('', dwm.rotate)
-- dwm.map('', function()
-- -- You can use any Lua function to map.
-- vim.notify('closing!', vim.log.levels.INFO)
-- dwm.close()
-- end)-- When b:dwm_disabled is set, all features are disabled.
vim.cmd[[au BufRead * if &previewwindow | let b:dwm_disabled = 1 | endif]]
end,
},
```