Skip to content

Commit

Permalink
Prefer vim.api over vim.fn (nvim-lua#97)
Browse files Browse the repository at this point in the history
See neovim/neovim#13875. Switching over the commented out code so that we don't face troubles when uncommenting it
  • Loading branch information
VVKot authored and delphinus committed Apr 26, 2021
1 parent a915506 commit fdcb306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/plenary/popup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ function popup.popup_create(what, vim_options)
vim.api.nvim_win_set_option(0, 'cursorline', true)
end

-- vim.fn.nvim_win_set_option(0, 'wrap', dict_default(vim_options, 'wrap', option_defaults))
-- vim.api.nvim_win_set_option(0, 'wrap', dict_default(vim_options, 'wrap', option_defaults))

-- ===== Not Implemented Options =====
-- flip: not implemented at the time of writing
Expand Down

0 comments on commit fdcb306

Please sign in to comment.