diff options
| author | RafaĆ Camlet <raf.camlet@gmail.com> | 2020-08-06 12:09:20 +0200 |
|---|---|---|
| committer | Thomas Vigouroux <39092278+vigoux@users.noreply.github.com> | 2020-08-06 13:28:53 +0200 |
| commit | 3c7528a29458a94dff3730f08356b7505a9bbda1 (patch) | |
| tree | 31bb20c1c675ed6ab6aabbddb6073bd4c39954ba /lua/nvim-treesitter/textobjects.lua | |
| parent | dccc250add3ead4298817bfce2f69682e1d1c0ff (diff) | |
Add noremap option to mappings
Diffstat (limited to 'lua/nvim-treesitter/textobjects.lua')
| -rw-r--r-- | lua/nvim-treesitter/textobjects.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/nvim-treesitter/textobjects.lua b/lua/nvim-treesitter/textobjects.lua index 2d6a25ff..7227b9e0 100644 --- a/lua/nvim-treesitter/textobjects.lua +++ b/lua/nvim-treesitter/textobjects.lua @@ -86,8 +86,8 @@ function M.attach(bufnr, lang) end if query then local cmd = ":lua require'nvim-treesitter.textobjects'.select_textobject('"..query.."')<CR>" - api.nvim_buf_set_keymap(buf, "o", mapping, cmd, {silent = true}) - api.nvim_buf_set_keymap(buf, "v", mapping, cmd, {silent = true}) + api.nvim_buf_set_keymap(buf, "o", mapping, cmd, {silent = true, noremap = true }) + api.nvim_buf_set_keymap(buf, "v", mapping, cmd, {silent = true, noremap = true }) end end end |
