Add noremap option to mappings

This commit is contained in:
Rafał Camlet 2020-08-06 12:09:20 +02:00 committed by Thomas Vigouroux
parent dccc250add
commit 3c7528a294
4 changed files with 5 additions and 5 deletions

View file

@ -105,7 +105,7 @@ function M.attach(bufnr)
mode = 'v'
end
local cmd = string.format(":lua require'nvim-treesitter.incremental_selection'.%s()<CR>", funcname)
api.nvim_buf_set_keymap(buf, mode, mapping, cmd, { silent = true })
api.nvim_buf_set_keymap(buf, mode, mapping, cmd, { silent = true, noremap = true })
end
end