We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0f4430 commit 9c705c9Copy full SHA for 9c705c9
lua/lspsaga/definition.lua
@@ -66,6 +66,14 @@ function def:close_all()
66
api.nvim_del_augroup_by_name('SagaPeekdefinition')
67
end
68
69
+local function transform_deno_path(fname)
70
+ if not fname:match('^deno:/') then
71
+ return fname
72
+ end
73
+ fname = fname:gsub('%%40', '@')
74
+ return fname:gsub('^deno:', 'deno\\:')
75
+end
76
+
77
function def:apply_maps(bufnr)
78
for action, map in pairs(config.definition.keys) do
79
if action ~= 'close' then
@@ -86,6 +94,7 @@ function def:apply_maps(bufnr)
86
94
self:close_all()
87
95
local curbuf = api.nvim_get_current_buf()
88
96
if action ~= 'edit' or curbuf ~= bufnr then
97
+ fname = transform_deno_path(fname)
89
98
vim.cmd[action](fname)
90
99
91
100
restore()
0 commit comments