aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/lua/vim.lua
diff options
context:
space:
mode:
authorGregory Anders <8965202+gpanders@users.noreply.github.com>2021-12-08 18:44:31 -0700
committerGitHub <noreply@github.com>2021-12-08 18:44:31 -0700
commitbe84529190e25294d0783394f63801e56a39e632 (patch)
tree93ebf4055e014ea0afbb0c0bcae5238bf58c86c4 /src/nvim/lua/vim.lua
parentc096561041840826245a82699dfb49064d326c52 (diff)
downloadrneovim-be84529190e25294d0783394f63801e56a39e632.tar.gz
rneovim-be84529190e25294d0783394f63801e56a39e632.tar.bz2
rneovim-be84529190e25294d0783394f63801e56a39e632.zip
refactor(diagnostic): remove bufnr parameter from open_float (#16579)
The overwhelming majority of use cases for `open_float` are to view diagnostics from the current buffer in a floating window. Thus, most use cases will just `0` or `nil` as the first argument, which makes the argument effectively useless and wasteful. In the cause of optimizing for the primary use case, make the `bufnr` parameter an optional parameter in the options table. This still allows using an alternative buffer for those that wish to do so, but makes the "primary" use case much easier. The old signature is preserved for backward compatibility, though it can likely be fully deprecated at some point.
Diffstat (limited to 'src/nvim/lua/vim.lua')
0 files changed, 0 insertions, 0 deletions