aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/pack.lua
diff options
context:
space:
mode:
authorEvgeni Chasnovski <evgeni.chasnovski@gmail.com>2025-11-14 12:07:03 +0200
committerEvgeni Chasnovski <evgeni.chasnovski@gmail.com>2025-11-17 12:47:29 +0200
commitf492f62c3d5fbceda60fc3a481ee1b51c60f71bb (patch)
treec5e0fc8b52e4f633906c7afbb902af37b7a903e3 /runtime/lua/vim/pack.lua
parentb151aa761f09487046e8a201409672bba0ff7ae2 (diff)
downloadrneovim-f492f62c3d5fbceda60fc3a481ee1b51c60f71bb.tar.gz
rneovim-f492f62c3d5fbceda60fc3a481ee1b51c60f71bb.tar.bz2
rneovim-f492f62c3d5fbceda60fc3a481ee1b51c60f71bb.zip
fix(pack): rename confirmation buffer to again use `nvim-pack://` scheme
Problem: `nvim://` scheme feels more like a generalized interface that may be requested externally, and it acts like CLI args (roughly). This is how `vscode://` works. Anything that behaves like an "app" or a "protocol" deserves its own scheme. For such Nvim-owned things they will be called `nvim-xx://`. Solution: Use `nvim-pack://confirm#<bufnr>` template for confirmation buffer name instead of `nvim://pack-confirm#<bufnr>`.
Diffstat (limited to 'runtime/lua/vim/pack.lua')
-rw-r--r--runtime/lua/vim/pack.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/pack.lua b/runtime/lua/vim/pack.lua
index 9db73ae14e..26cffb8606 100644
--- a/runtime/lua/vim/pack.lua
+++ b/runtime/lua/vim/pack.lua
@@ -1057,7 +1057,7 @@ end
local function show_confirm_buf(lines, on_finish)
-- Show buffer in a separate tabpage
local bufnr = api.nvim_create_buf(true, true)
- api.nvim_buf_set_name(bufnr, 'nvim://pack-confirm#' .. bufnr)
+ api.nvim_buf_set_name(bufnr, 'nvim-pack://confirm#' .. bufnr)
api.nvim_buf_set_lines(bufnr, 0, -1, false, lines)
vim.cmd.sbuffer({ bufnr, mods = { tab = vim.fn.tabpagenr() } })
local tab_id = api.nvim_get_current_tabpage()