diff options
Diffstat (limited to 'utils/installer/config.example-no-ts.lua')
-rw-r--r-- | utils/installer/config.example-no-ts.lua | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/utils/installer/config.example-no-ts.lua b/utils/installer/config.example-no-ts.lua index c74548dc..4303d264 100644 --- a/utils/installer/config.example-no-ts.lua +++ b/utils/installer/config.example-no-ts.lua @@ -5,17 +5,25 @@ 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 @@ -69,5 +77,3 @@ lvim.builtin.treesitter.highlight.enabled = true -- lvim.autocommands.custom_groups = { -- { "BufWinEnter", "*.lua", "setlocal ts=8 sw=8" }, -- } - --- Additional Leader bindings for WhichKey |