Skip to content

Commit

Permalink
fix(view): disable footer on Neovim < 0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jul 15, 2024
1 parent 560e2dd commit 6d544a4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/which-key/win.lua
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ function M:show(opts)
win_opts.padding = nil
win_opts.no_overlap = nil

if vim.fn.has("nvim-0.10") == 0 then
win_opts.footer = nil
end

if self:valid() then
win_opts.noautocmd = nil
return vim.api.nvim_win_set_config(self.win, win_opts)
Expand Down

0 comments on commit 6d544a4

Please sign in to comment.