summaryrefslogtreecommitdiff
path: root/utils/installer/config.example.lua
diff options
context:
space:
mode:
Diffstat (limited to 'utils/installer/config.example.lua')
-rw-r--r--utils/installer/config.example.lua41
1 files changed, 19 insertions, 22 deletions
diff --git a/utils/installer/config.example.lua b/utils/installer/config.example.lua
index a7a55874..90bf6c92 100644
--- a/utils/installer/config.example.lua
+++ b/utils/installer/config.example.lua
@@ -13,17 +13,26 @@ an executable
lvim.format_on_save = true
lvim.lint_on_save = true
lvim.colorscheme = "spacegray"
--- keymappings
+
+-- keymappings [view all the defaults by pressing <leader>Lk]
lvim.leader = "space"
--- overwrite/augment the key-mappings provided by LunarVim for any mode, or leave empty to keep the defaults.
--- lvim.keys.normal_mode = {
--- -- Page down/up
--- ["[d"] = { "<PageUp>" },
--- ["]d"] = { "<PageDown>" },
---
--- -- Navigate buffers
--- ["<Tab>"] = { ":bnext<CR>" },
--- ["<S-Tab>"] = { ":bprevious<CR>" },
+-- add your own keymapping
+lvim.keys.normal_mode["<C-s>"] = ":w<cr>"
+-- unmap a default keymapping
+-- lvim.keys.normal_mode["<C-Up>"] = ""
+-- edit a default keymapping
+-- lvim.keys.normal_mode["<C-q>"] = ":q<cr>"
+
+-- Use which-key to add extra bindings with the leader-key prefix
+-- lvim.builtin.which_key.mappings["P"] = { "<cmd>lua require'telescope'.extensions.project.project{}<CR>", "Projects" }
+-- lvim.builtin.which_key.mappings["t"] = {
+-- name = "+Trouble",
+-- r = { "<cmd>Trouble lsp_references<cr>", "References" },
+-- f = { "<cmd>Trouble lsp_definitions<cr>", "Definitions" },
+-- d = { "<cmd>Trouble lsp_document_diagnostics<cr>", "Diagnosticss" },
+-- q = { "<cmd>Trouble quickfix<cr>", "QuickFix" },
+-- l = { "<cmd>Trouble loclist<cr>", "LocationList" },
+-- w = { "<cmd>Trouble lsp_workspace_diagnostics<cr>", "Diagnosticss" },
-- }
-- TODO: User Config for predefined plugins
@@ -77,15 +86,3 @@ lvim.builtin.treesitter.highlight.enabled = true
-- lvim.autocommands.custom_groups = {
-- { "BufWinEnter", "*.lua", "setlocal ts=8 sw=8" },
-- }
-
--- Additional Leader bindings for WhichKey
--- lvim.builtin.which_key.mappings["P"] = { "<cmd>lua require'telescope'.extensions.project.project{}<CR>", "Projects" }
--- lvim.builtin.which_key.mappings["t"] = {
--- name = "+Trouble",
--- r = { "<cmd>Trouble lsp_references<cr>", "References" },
--- f = { "<cmd>Trouble lsp_definitions<cr>", "Definitions" },
--- d = { "<cmd>Trouble lsp_document_diagnostics<cr>", "Diagnosticss" },
--- q = { "<cmd>Trouble quickfix<cr>", "QuickFix" },
--- l = { "<cmd>Trouble loclist<cr>", "LocationList" },
--- w = { "<cmd>Trouble lsp_workspace_diagnostics<cr>", "Diagnosticss" },
--- }