From d43365ca73b41ab6c8862a36135b511ef7909b8e Mon Sep 17 00:00:00 2001 From: yaso Date: Thu, 19 Mar 2026 11:50:41 +0200 Subject: [PATCH] add autopairs to the editor --- README.md | 1 + lazy-lock.json | 3 ++- lua/plugins/oneliners.lua | 30 ++++++++++++++++++------------ 3 files changed, 21 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index b8353d5..ca76d59 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,7 @@ The **Leader Key** is set to `Space`. ### Navigation & Searching | Action | Keybinding | Description | | :--- | :--- | :--- | +| **Dashboard** | `;` | Open the MzansiVim Dasboard. | | **File Explorer** | `cd` | Open the built-in Netrw explorer. | | **Find Files** | `ff` | Fuzzy find files in your project. | | **Live Grep** | `fg` | Search for specific text across all files. | diff --git a/lazy-lock.json b/lazy-lock.json index 9c46294..869b812 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -9,10 +9,11 @@ "dressing.nvim": { "branch": "master", "commit": "2d7c2db2507fa3c4956142ee607431ddb2828639" }, "flutter-tools.nvim": { "branch": "main", "commit": "677cc07c16e8b89999108d2ebeefcfc5f539b73c" }, "harpoon": { "branch": "harpoon2", "commit": "87b1a3506211538f460786c23f98ec63ad9af4e5" }, - "lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" }, + "lazy.nvim": { "branch": "main", "commit": "85c7ff3711b730b4030d03144f6db6375044ae82" }, "lualine.nvim": { "branch": "master", "commit": "47f91c416daef12db467145e16bed5bbfe00add8" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "a676ab7282da8d651e175118bcf54483ca11e46d" }, "mason.nvim": { "branch": "main", "commit": "44d1e90e1f66e077268191e3ee9d2ac97cc18e65" }, + "nvim-autopairs": { "branch": "master", "commit": "59bce2eef357189c3305e25bc6dd2d138c1683f5" }, "nvim-cmp": { "branch": "main", "commit": "da88697d7f45d16852c6b2769dc52387d1ddc45f" }, "nvim-lspconfig": { "branch": "master", "commit": "dc2f86d2b66a6e01a98c37cdadd3be3e90f8ab9a" }, "nvim-treesitter": { "branch": "main", "commit": "2cc172c28e5550e00e6beead4599b1469469c1c7" }, diff --git a/lua/plugins/oneliners.lua b/lua/plugins/oneliners.lua index eee171d..1565492 100644 --- a/lua/plugins/oneliners.lua +++ b/lua/plugins/oneliners.lua @@ -1,14 +1,20 @@ return { - { - -- Git Plugin - 'tpope/vim-fugitive', - }, - { - "numToStr/Comment.nvim", - config = function() - require("Comment").setup() - vim.keymap.set("n", "", "gcc", { remap = true, desc = "Toggle comment" }) - vim.keymap.set("v", "", "gc", { remap = true, desc = "Toggle comment" }) - end, - }, + { + -- Git Plugin + 'tpope/vim-fugitive', + }, + { + "numToStr/Comment.nvim", + config = function() + require("Comment").setup() + vim.keymap.set("n", "", "gcc", { remap = true, desc = "Toggle comment" }) + vim.keymap.set("v", "", "gc", { remap = true, desc = "Toggle comment" }) + end, + }, + { + 'windwp/nvim-autopairs', + event = "InsertEnter", + config = true + }, + }