Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/delphinus/dwm.nvim


https://github.com/delphinus/dwm.nvim

Last synced: 7 days ago
JSON representation

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,
},
```