Skip to content

Commit

Permalink
fix(lspinfo): use compatible api to set the lspinfo bufhidden option(n…
Browse files Browse the repository at this point in the history
…eovim#2500)

* fix(lspinfo): set the lspinfo bufhidden to wipe

* fix: using api
  • Loading branch information
glepnir authored Mar 9, 2023
1 parent f3e6c03 commit bc62a72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lspconfig/ui/lspinfo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ return function()

local win_info = windows.percentage_range_window(0.8, 0.7)
local bufnr, win_id = win_info.bufnr, win_info.win_id
api.nvim_set_option_value('bufhidden', 'wipe', { buf = bufnr })
api.nvim_buf_set_option(bufnr, 'bufhidden', 'wipe')

local buf_lines = {}

Expand Down

0 comments on commit bc62a72

Please sign in to comment.