Skip to content

Commit

Permalink
add <leader>t keymap
Browse files Browse the repository at this point in the history
  • Loading branch information
pandanoir authored Jan 10, 2025
1 parent 8e4aa3a commit df9c463
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nvim/lua/keymappings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ keymap('n', 'J', 'gJ')
keymap('n', '<CR>', ':<C-u>w<CR>')
keymap('n', '<leader><CR>', ':<C-u>noa w<CR>')

keymap('n', '<C-k><C-k>', ':set nohlsearch!<CR><Esc>')
keymap('n', '<leader>W', ':set wrap!<CR>', { desc = 'toggle wrap opt' })
keymap('n', '<leader>th', ':set nohlsearch!<CR><Esc>', { desc = 'toggle search highlight' })
keymap('n', '<leader>tw', ':set wrap!<CR>', { desc = 'toggle wrap opt' })

-- qで終了、Qでマクロ
keymap('n', 'q', ':<C-u>q<CR>')
Expand Down
1 change: 1 addition & 0 deletions nvim/lua/plugins/others.lua
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ return {
config = function(_, opts)
require 'which-key'.setup(opts)
require 'which-key'.add {
{ '<leader>t', group = 'toggle', },
{
'gf',
function()
Expand Down

0 comments on commit df9c463

Please sign in to comment.