feat(nvim): add various keybinds
This commit is contained in:
parent
c5aaacf0f9
commit
5977d6a7e1
3 changed files with 24 additions and 5 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue