diff options
| author | nsfisis <nsfisis@gmail.com> | 2022-12-18 21:26:04 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2022-12-18 21:26:04 +0900 |
| commit | 0eb76c55d50787e6ea2e7e4c3ea20bca0bd9034a (patch) | |
| tree | b0624cb61680747eaab6812e2a6617bd233a1d8b | |
| parent | 70e6ee4a8f5a1da1a00d26f9caf98da8071cd456 (diff) | |
| download | dotfiles-0eb76c55d50787e6ea2e7e4c3ea20bca0bd9034a.tar.gz dotfiles-0eb76c55d50787e6ea2e7e4c3ea20bca0bd9034a.tar.zst dotfiles-0eb76c55d50787e6ea2e7e4c3ea20bca0bd9034a.zip | |
neovim: use *noremap for <Plug>*
Old version of Vim/Neovim had a restriction that key mapping to <Plug>*
must be defined by *map. Patch 8.2.4498 got rid of the limitation.
> Note: When <Plug> appears in the {rhs} this part is
> always applied even if remapping is disallowed.
| -rw-r--r-- | .config/nvim/after/ftplugin/leaf.lua | 12 |
1 files 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 <buffer> ,t <Plug>(leaf-switch-task-status-to-todo) - nmap <buffer> ,T <Plug>(leaf-switch-task-status-to-todo-rec) - nmap <buffer> ,d <Plug>(leaf-switch-task-status-to-done) - nmap <buffer> ,D <Plug>(leaf-switch-task-status-to-done-rec) - nmap <buffer> ,c <Plug>(leaf-switch-task-status-to-canceled) - nmap <buffer> ,C <Plug>(leaf-switch-task-status-to-canceled-rec) + nnoremap <buffer> ,t <Plug>(leaf-switch-task-status-to-todo) + nnoremap <buffer> ,T <Plug>(leaf-switch-task-status-to-todo-rec) + nnoremap <buffer> ,d <Plug>(leaf-switch-task-status-to-done) + nnoremap <buffer> ,D <Plug>(leaf-switch-task-status-to-done-rec) + nnoremap <buffer> ,c <Plug>(leaf-switch-task-status-to-canceled) + nnoremap <buffer> ,C <Plug>(leaf-switch-task-status-to-canceled-rec) ]=]) end) |
