diff --git a/README.md b/README.md index 61169df..ca1f422 100644 --- a/README.md +++ b/README.md @@ -86,6 +86,7 @@ let g:minimap_auto_start_win_enter = 1 | `g:minimap_block_buftypes` | `['nofile', 'nowrite', 'quickfix', 'terminal', 'prompt']` | disable minimap for specific buffer types | | `g:minimap_close_filetypes` | `['startify', 'netrw', 'vim-plug']` | close minimap for specific file types | | `g:minimap_close_buftypes` | `[]` | close minimap for specific buffer types | +| `g:minimap_exec_warning` | `1` | if set, enables code-minimap not found warning message at startup | | `g:minimap_left` | `0` | if set, minimap window will append left | | `g:minimap_highlight_range` | `1` | if set, minimap will highlight range of visible lines | | `g:minimap_highlight_search` | `0` | if set, minimap will highlight searched patterns | diff --git a/doc/minimap-vim.txt b/doc/minimap-vim.txt index ee2562f..020464c 100644 --- a/doc/minimap-vim.txt +++ b/doc/minimap-vim.txt @@ -132,6 +132,13 @@ g:minimap_close_buftypes *g:minimap_close_buftypes* present in `g:minimap_block_buftypes`, the minimap will prefer to close rather than disable. +g:minimap_exec_warning *g:minimap_exec_warning* + + Type: |Number| + Default: `1` + + If set to 1, enables code-minimap not found warning message at startup. + g:minimap_highlight_search *g:minimap_highlight_search* Type: |Number| diff --git a/plugin/minimap.vim b/plugin/minimap.vim index cd8f521..1b32128 100644 --- a/plugin/minimap.vim +++ b/plugin/minimap.vim @@ -9,8 +9,15 @@ if v:version < 800 finish endif +if !exists('g:minimap_exec_warning') + let g:minimap_exec_warning = 1 +endif + if !executable('code-minimap') - echom 'minimap: this plugin requires code-minimap installed.' + if g:minimap_exec_warning != 0 + echom 'minimap: this plugin requires code-minimap installed.' + endif + finish endif