Skip to content

Commit

Permalink
refactor(window): replace deprecated usage nvim_buf_set_option (#433)
Browse files Browse the repository at this point in the history
this is now deprecated in 0.10 and can be replaced with
nvim_set_option_value

per https://neovim.io/doc/user/deprecated.html#deprecated-0.10

Fixes: N/A

Co-authored-by: Cody Mikol <[email protected]>
  • Loading branch information
codymikol and Cody Mikol authored Jul 11, 2024
1 parent b0a5a59 commit 0fe9186
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/neotest/lib/window.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function PersistentWindow:buffer()
nio.api.nvim_buf_set_name(self._bufnr, self.name)
for k, v in pairs(self._bufopts) do
if k ~= "filetype" then
nio.api.nvim_buf_set_option(self._bufnr, k, v)
nio.api.nvim_set_option_value(k, v, { buf = self._bufnr })
end
end
return self._bufnr
Expand Down

0 comments on commit 0fe9186

Please sign in to comment.