Skip to content

Commit

Permalink
Set filetype=which_key for floating window as well (liuchengxu#204)
Browse files Browse the repository at this point in the history
This allow to use if &filetype == 'which_key' regardless of which kind
of window which_key is using.
  • Loading branch information
antoinemadec authored Sep 22, 2021
1 parent da2934f commit 2c915b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions autoload/which_key/window.vim
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ function! s:show_floating_win(rows, layout) abort
endif

call setbufvar(s:bufnr, '&modifiable', 1)
call setbufvar(s:bufnr, '&filetype', 'which_key')

silent call nvim_buf_set_lines(s:bufnr, 0, -1, 0, rows)

Expand Down

0 comments on commit 2c915b6

Please sign in to comment.