Replies: 1 comment 2 replies
-
Pass args to the command. vim.keymap.set(
'x',
'<Space>w',
function()
require('vscode-neovim').action('search.action.openNewEditor', {
args = {
query = 'abc',
},
})
end
) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is my mapping
Say I first visually select a word, and then run the above mapping. Now, a new search editor will be open, however, the previously selected word is not shown in the search editor bar. I'd expect the word will show there by default.
Beta Was this translation helpful? Give feedback.
All reactions