fix(incremental-selection): use cmd instead of :lua for command

This commit is contained in:
Maria José Solano 2024-01-27 13:05:23 -08:00 committed by Christian Clason
parent b4138891b3
commit 458ce4d16c

View file

@ -148,7 +148,7 @@ function M.attach(bufnr)
mode = "x"
-- We need to move to command mode to access marks '< (visual area start) and '> (visual area end) which are not
-- properly accessible in visual mode.
rhs = string.format(":lua require'nvim-treesitter.incremental_selection'.%s()<CR>", funcname)
rhs = string.format("<cmd>lua require'nvim-treesitter.incremental_selection'.%s()<CR>", funcname)
end
vim.keymap.set(
mode,