mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
fix(incremental-selection): use cmd instead of :lua for command
This commit is contained in:
parent
b4138891b3
commit
458ce4d16c
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue