feat(nvim): add various keybinds

This commit is contained in:
Moritz Böhme 2023-03-26 18:28:49 +02:00
parent c5aaacf0f9
commit 5977d6a7e1
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
3 changed files with 24 additions and 5 deletions

View file

@ -1,7 +1,5 @@
require("impatient")
local wk = require("which-key")
require("nvim-treesitter.configs").setup({
sync_install = false,
auto_install = false,
@ -142,7 +140,7 @@ vim.o.statuscolumn = "%= "
.. "%= " -- spacing between end of column and start of text
-- Using ufo provider need remap `zR` and `zM`. If Neovim is 0.6.1, remap yourself
wk.register({
require("which-key").register({
z = {
R = { require("ufo").openAllFolds, "Open all folds" },
M = { require("ufo").closeAllFolds, "Close all folds" },
@ -171,7 +169,7 @@ require("lspsaga").setup({
local lspconfig = require("lspconfig")
local on_attach_def = function(_, bufnr)
wk.register({
require("which-key").register({
K = { "<cmd>Lspsaga hover_doc ++quiet<cr>", "show info" },
["<leader>"] = {
l = {