aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/pack/_lsp.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/_lsp.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/_lsp.lua')
-rw-r--r--runtime/lua/vim/pack/_lsp.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/pack/_lsp.lua b/runtime/lua/vim/pack/_lsp.lua
index 7af48d529b..04949ce6eb 100644
--- a/runtime/lua/vim/pack/_lsp.lua
+++ b/runtime/lua/vim/pack/_lsp.lua
@@ -20,7 +20,7 @@ function methods.shutdown(_, callback)
end
local get_confirm_bufnr = function(uri)
- return tonumber(uri:match('^nvim://pack%-confirm#(%d+)$'))
+ return tonumber(uri:match('^nvim%-pack://confirm#(%d+)$'))
end
local group_header_pattern = '^# (%S+)'