Skip to content

Commit

Permalink
nvim_buf_get_option is deprecated in neovim 0.10+
Browse files Browse the repository at this point in the history
See `:h deprecated-0.10`.
  • Loading branch information
Julian committed Jun 1, 2024
1 parent e3a1fd3 commit 7d1d5fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lean/infoview.lua
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,7 @@ function Pin:__mk_data_elem(tick)
return Element:new()
end

if vim.api.nvim_buf_get_option(buf, 'ft') == 'lean3' then
if vim.bo[buf].filetype == 'lean3' then
return lean3.render_pin(self, buf, params, self.__use_widgets, options.lean3)
end

Expand Down

0 comments on commit 7d1d5fc

Please sign in to comment.