We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
gx
1 parent 9216cd3 commit ca9adcfCopy full SHA for ca9adcf
tests/test_operators.lua
@@ -140,7 +140,13 @@ end
140
T['setup()']['remaps built-in `gx` mappings'] = function()
141
if child.fn.has('nvim-0.10') == 0 then MiniTest.skip('Neovim<0.10 does not have built-in `gx` mappings') end
142
143
+ -- Mock functions used to compute and show URI at cursor
144
+ child.lua('vim.lsp.buf_request_sync = function() return {} end')
145
child.lua('vim.ui.open = function() _G.n = (_G.n or 0) + 1 end')
146
+
147
+ set_lines({ 'https://nvim-mini.org' })
148
+ set_cursor(1, 0)
149
150
local validate = function(keys, ref_n)
151
type_keys(keys)
152
eq(child.lua_get('_G.n'), ref_n)
0 commit comments