Skip to content

Conversation

@BigLesbianFox
Copy link

This PR adds two events User#NVEnter and User#NVLeave to enable integration with other plugins such as junegunn/goyo.vim and junegunn/limelight.vim.

S. Verona Malone added 2 commits May 28, 2022 15:04
This commit adds the events `NVEnter` and `NVLeave`. The intended use
case is for integration with other plugins such as Goyo.vim.
@BigLesbianFox
Copy link
Author

I received an email asking for more information on wiring this plugin and Goyo together, so I'll reproduce here some of my .vimrc.

call plug#begin()
" Writing
Plug 'junegunn/goyo.vim'
Plug 'junegunn/limelight.vim'
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'https://github.com/sverona/notational-fzf-vim', { 'branch': 'pre-post-hook' }
" ...
call plug#end()

autocmd! User NVLeave Goyo
autocmd! User GoyoEnter Limelight
autocmd! User GoyoLeave Limelight!

" ...
let mapleader = '\'

nnoremap <leader>z :NV<CR>

@mtwebb
Copy link

mtwebb commented Jun 29, 2022

This is a nice addition. +1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants