From c63349700cbd61c705caaa9c6e2cddde4123efa8 Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Mon, 8 Aug 2022 16:36:18 -0700 Subject: [PATCH] nvim: remap undotree toggle and update autopairs config --- .config/nvim/lua/blake/plugins.lua | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.config/nvim/lua/blake/plugins.lua b/.config/nvim/lua/blake/plugins.lua index ed72ac2..5aaedb9 100644 --- a/.config/nvim/lua/blake/plugins.lua +++ b/.config/nvim/lua/blake/plugins.lua @@ -281,8 +281,7 @@ return require('packer').startup({function() use { -- undotree: visual undo tree 'mbbill/undotree', config = function() - vim.cmd 'nnoremap UndotreeToggle' - vim.api.nvim_set_keymap('n', '', 'UndotreeToggle', { noremap = true, silent = true, }) + vim.api.nvim_set_keymap('n', 'u', 'UndotreeToggle', { noremap = true, silent = true, }) end } -- use { -- shade.nvim: dim inactive window @@ -310,9 +309,9 @@ return require('packer').startup({function() cmp_autopairs.on_confirm_done() ) require('nvim-autopairs').setup({ - -- check_ts = true, - -- map_c_h = true, - -- map_c_w = true, + check_ts = true, + map_c_h = true, + map_c_w = true, }) end, requires = 'hrsh7th/nvim-cmp', -- config requires