Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide statusline not working with floating windows? #170

Open
jedahan opened this issue Jan 28, 2021 · 0 comments
Open

Hide statusline not working with floating windows? #170

jedahan opened this issue Jan 28, 2021 · 0 comments

Comments

@jedahan
Copy link

jedahan commented Jan 28, 2021

Environment (please complete the following information):

  • OS: macOS

  • (Neo)Vim version: NVIM v0.5.0-dev+1048-g69103ff0c

  • vim-which-key version: c5322b2

  • Have you reproduced with a minimal vimrc: ???

set hidden
set showcmd

let g:mapleader = " "
let g:maplocalleader = " "
set timeoutlen=500

lua<<PLUGINS
vim.cmd [[packadd packer.nvim]]

return require('packer').startup(function()
  use {'wbthomason/packer.nvim', opt = true}
  use {'liuchengxu/vim-which-key'}
end)
PLUGINS

let g:which_key_map =  {}
call which_key#register('<Space>', "g:which_key_map")
nnoremap <silent> <leader> <cmd>WhichKey '<Space>'<cr>

autocmd! FileType which_key
autocmd  FileType which_key set laststatus=0 noshowmode noruler noshowcmd
  \| autocmd BufLeave <buffer> set laststatus=2 showmode ruler showcmd
let g:which_key_disable_default_offset = 1
let g:which_key_use_floating_win = 1

let g:which_key_map.f = { 'name' : '+file' }
let g:which_key_map.f.s = 'save-file'
nnoremap <silent> <leader>fs <cmd>update<cr>

Describe the bug
I tried to hide the statuline using whats in the readme, but there are still two lines - the cursor/statusline, and a line above it from the buffer.

Screen Shot 2021-01-28 at 2 11 48 PM

Ideally, the bottom two lines would not be visible.

autocmd! FileType which_key
autocmd  FileType which_key set laststatus=0 noshowmode noruler
  \| autocmd BufLeave <buffer> set laststatus=2 showmode ruler

To Reproduce
Steps to reproduce the behavior:

  1. Create the minimal vimrc min.vim:
set nocompatible
set runtimepath^=/path/to/vim-which-key
syntax on
filetype plugin indent on

" Here place the configuration that can cause this issue.
  1. Start (neo)vim with command: vim -u min.vim

  2. Press ''

  3. See error

Expected behavior
explained above?

Screenshots
Shown above?

Additional context
Just whats above

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

No branches or pull requests

1 participant