From 3c7528a29458a94dff3730f08356b7505a9bbda1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Camlet?= Date: Thu, 6 Aug 2020 12:09:20 +0200 Subject: Add noremap option to mappings --- lua/nvim-treesitter/textobjects.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lua/nvim-treesitter/textobjects.lua') 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.."')" - 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 -- cgit v1.2.3