diff --git a/README.md b/README.md index 4769463..03db559 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ Configuration - `g:goyo_width` (default: 80) - `g:goyo_margin_top` (default: 4) - `g:goyo_margin_bottom` (default: 4) +- `g:goyo_linenr` (default: 0) Inspiration ----------- diff --git a/plugin/goyo.vim b/plugin/goyo.vim index 5d82c86..b7be534 100644 --- a/plugin/goyo.vim +++ b/plugin/goyo.vim @@ -132,7 +132,9 @@ function! s:goyo_on(width) GitGutterDisable endif - set nonu nornu + if !get(g:, 'goyo_linenr', 0) + set nonu nornu + endif set colorcolumn= set winwidth=1 set winheight=1