Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anuvyklack/help-vsplit.nvim
Open Neovim help in vertical split if there is enough space
https://github.com/anuvyklack/help-vsplit.nvim
lua neovim neovim-plugin
Last synced: 18 days ago
JSON representation
Open Neovim help in vertical split if there is enough space
- Host: GitHub
- URL: https://github.com/anuvyklack/help-vsplit.nvim
- Owner: anuvyklack
- License: apache-2.0
- Created: 2022-01-15T12:51:50.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-01-15T17:54:46.000Z (almost 3 years ago)
- Last Synced: 2024-08-02T13:33:47.384Z (4 months ago)
- Topics: lua, neovim, neovim-plugin
- Language: Lua
- Homepage:
- Size: 4.88 KB
- Stars: 23
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# help-vsplit.nvim
Open vim help into a vertical split from the right or left of the current
window if there is enough space for it. If space is not enough the help be
opened in the horizontal split as it by default in Vim.To install and activate with packer:
```lua
use { 'anuvyklack/help-vsplit.nvim'
config = function()
require('help-vsplit').setup()
end
}
```## Configuration
In the `setup()` function you can pass the table with desired settings.
Defaults are the next:```lua
{
always = false, -- Always open help in a vertical split.
side = 'right', -- 'left' or 'right'
buftype = { 'help' },
filetype = { 'man' }
}
```## Open help in a vertical split on the far right
For this you don't need plugin. Add into file
```sh
$HOME/.config/nvim/after/ftplugin/help.vim
```the next line
```vim
wincmd L
```