From cba0c92d9c06c69732d0753d776dfc027a508dcd Mon Sep 17 00:00:00 2001 From: tastytea Date: Thu, 11 Aug 2022 21:30:20 +0200 Subject: [PATCH] nvim remove most TComment keymaps --- .config/nvim/lua/my/coding.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.config/nvim/lua/my/coding.lua b/.config/nvim/lua/my/coding.lua index f1119d8..37055b5 100644 --- a/.config/nvim/lua/my/coding.lua +++ b/.config/nvim/lua/my/coding.lua @@ -5,7 +5,9 @@ require('my/ui') packer.use { -- toggle comments 'https://github.com/tomtom/tcomment_vim', config = function() - map({ 'n', 'v' }, 'c', ':TComment') + vim.g.tcomment_opleader1 = 'c' + vim.g.tcomment_mapleader1 = '' + vim.g.tcomment_mapleader2 = '' end }