From 0eb76c55d50787e6ea2e7e4c3ea20bca0bd9034a Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 18 Dec 2022 21:26:04 +0900 Subject: neovim: use *noremap for * Old version of Vim/Neovim had a restriction that key mapping to * must be defined by *map. Patch 8.2.4498 got rid of the limitation. > Note: When appears in the {rhs} this part is > always applied even if remapping is disallowed. --- .config/nvim/after/ftplugin/leaf.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.config/nvim/after/ftplugin/leaf.lua b/.config/nvim/after/ftplugin/leaf.lua index bf3e9b7..0f38ac2 100644 --- a/.config/nvim/after/ftplugin/leaf.lua +++ b/.config/nvim/after/ftplugin/leaf.lua @@ -8,11 +8,11 @@ vimrc.after_ftplugin('leaf', function(conf) end vim.cmd([=[ - nmap ,t (leaf-switch-task-status-to-todo) - nmap ,T (leaf-switch-task-status-to-todo-rec) - nmap ,d (leaf-switch-task-status-to-done) - nmap ,D (leaf-switch-task-status-to-done-rec) - nmap ,c (leaf-switch-task-status-to-canceled) - nmap ,C (leaf-switch-task-status-to-canceled-rec) + nnoremap ,t (leaf-switch-task-status-to-todo) + nnoremap ,T (leaf-switch-task-status-to-todo-rec) + nnoremap ,d (leaf-switch-task-status-to-done) + nnoremap ,D (leaf-switch-task-status-to-done-rec) + nnoremap ,c (leaf-switch-task-status-to-canceled) + nnoremap ,C (leaf-switch-task-status-to-canceled-rec) ]=]) end) -- cgit v1.2.3-70-g09d2