Skip to content

Commit

Permalink
Merge pull request nvim-lua#438 from tcld/which_key_documentation
Browse files Browse the repository at this point in the history
Which key documentation and 2-3 changed keybindings
  • Loading branch information
feoh authored Sep 29, 2023
2 parents fca29aa + 0340f77 commit daf2dc3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,17 @@ local on_attach = function(_, bufnr)
end, { desc = 'Format current buffer with LSP' })
end

-- document existing key chains
require('which-key').register({
['<leader>c'] = { name = '[C]ode', _ = 'which_key_ignore' },
['<leader>d'] = { name = '[D]ocument', _ = 'which_key_ignore' },
['<leader>g'] = { name = '[G]it', _ = 'which_key_ignore' },
['<leader>h'] = { name = 'More git', _ = 'which_key_ignore' },
['<leader>r'] = { name = '[R]ename', _ = 'which_key_ignore' },
['<leader>s'] = { name = '[S]earch', _ = 'which_key_ignore' },
['<leader>w'] = { name = '[W]orkspace', _ = 'which_key_ignore' },
})

-- Enable the following language servers
-- Feel free to add/remove any LSPs that you want here. They will automatically be installed.
--
Expand Down

0 comments on commit daf2dc3

Please sign in to comment.