From 44dc05c242f672e263d7f13db9135b691f41fe8f Mon Sep 17 00:00:00 2001 From: abzcoding Date: Tue, 27 Jul 2021 22:21:25 +0430 Subject: add some sample which-key mappings to lv-config.lua and README.md --- README.md | 12 ++++++++++++ utils/installer/lv-config.example.lua | 10 ++++++++++ 2 files changed, 22 insertions(+) diff --git a/README.md b/README.md index 09ca52bd..bf5c1c79 100644 --- a/README.md +++ b/README.md @@ -110,6 +110,18 @@ lvim.plugins = { -- { "BufWinEnter", "*.lua", "setlocal ts=8 sw=8" }, -- } +-- Additional Leader bindings for WhichKey +-- lvim.builtin.which_key.mappings["P"] = { "lua require'telescope'.extensions.project.project{}", "Projects" } +-- lvim.builtin.which_key.mappings["t"] = { +-- name = "+Trouble", +-- r = { "Trouble lsp_references", "References" }, +-- f = { "Trouble lsp_definitions", "Definitions" }, +-- d = { "Trouble lsp_document_diagnostics", "Diagnosticss" }, +-- q = { "Trouble quickfix", "QuickFix" }, +-- l = { "Trouble loclist", "LocationList" }, +-- w = { "Trouble lsp_workspace_diagnostics", "Diagnosticss" }, +-- } + ``` In case you want to see all the settings inside LunarVim, run the following: diff --git a/utils/installer/lv-config.example.lua b/utils/installer/lv-config.example.lua index ef4e0645..681f5f65 100644 --- a/utils/installer/lv-config.example.lua +++ b/utils/installer/lv-config.example.lua @@ -73,3 +73,13 @@ lvim.builtin.treesitter.highlight.enabled = true -- } -- Additional Leader bindings for WhichKey +-- lvim.builtin.which_key.mappings["P"] = { "lua require'telescope'.extensions.project.project{}", "Projects" } +-- lvim.builtin.which_key.mappings["t"] = { +-- name = "+Trouble", +-- r = { "Trouble lsp_references", "References" }, +-- f = { "Trouble lsp_definitions", "Definitions" }, +-- d = { "Trouble lsp_document_diagnostics", "Diagnosticss" }, +-- q = { "Trouble quickfix", "QuickFix" }, +-- l = { "Trouble loclist", "LocationList" }, +-- w = { "Trouble lsp_workspace_diagnostics", "Diagnosticss" }, +-- } -- cgit v1.2.3