From 382b6bdb5eb7f85d5f07610be657d87e45dbe9a6 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Tue, 26 Mar 2024 07:38:57 +0300 Subject: [PATCH] Nvim : Rekey toggle tab size to . --- module/common/nvim/src/key/Common.lua | 2 +- module/common/nvim/src/plugin/Filetree.lua | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/module/common/nvim/src/key/Common.lua b/module/common/nvim/src/key/Common.lua index 2e8ff04d..9e6fb31b 100644 --- a/module/common/nvim/src/key/Common.lua +++ b/module/common/nvim/src/key/Common.lua @@ -20,7 +20,7 @@ function toggle_tab_width() end end -rekey_normal("'", "lua toggle_tab_width()") +rekey_normal("", "lua toggle_tab_width()") -- Repeat previous command. rekey_normal(".", "@:") diff --git a/module/common/nvim/src/plugin/Filetree.lua b/module/common/nvim/src/plugin/Filetree.lua index 8d61b72c..a9eb87d1 100644 --- a/module/common/nvim/src/plugin/Filetree.lua +++ b/module/common/nvim/src/plugin/Filetree.lua @@ -4,16 +4,16 @@ vim.g.loaded_netrwPlugin = 1 local function my_on_attach(bufnr) local api = require "nvim-tree.api" - + local function opts(desc) return { desc = "nvim-tree: " .. desc, buffer = bufnr, noremap = true, silent = true, nowait = true } end - + -- Default mappings. api.config.mappings.default_on_attach(bufnr) - + -- Custom mappings. - vim.keymap.set('n', '', api.tree.change_root_to_node, opts('Cd into')) + -- vim.keymap.set('n', '', api.tree.change_root_to_node, opts('Cd into')) end -- Set termguicolors to enable highlight groups.