From a73b7d1d36eef260641f2a440bd01900a3dcdd79 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Fri, 25 Jul 2025 13:34:50 +0545 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(editor):=20add=20mdx=20support?= =?UTF-8?q?=20and=20remap=20surround=20keys=20for=20better=20accessibility?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/plugins/editor/surround.lua | 14 +++++++------- lua/plugins/list.lua | 11 +++++++---- lua/plugins/lock.json | 1 + 3 files changed, 15 insertions(+), 11 deletions(-) diff --git a/lua/plugins/editor/surround.lua b/lua/plugins/editor/surround.lua index 4391c07..97a2f0d 100644 --- a/lua/plugins/editor/surround.lua +++ b/lua/plugins/editor/surround.lua @@ -3,13 +3,13 @@ local surround = require('mini.surround') surround.setup({ custom_surroundings = nil, mappings = { - add = 'sa', - delete = 'sd', - find = 'sf', - find_left = 'sF', - highlight = 'sh', - replace = 'sr', - update_n_lines = 'sn', + add = 'gsa', + delete = 'gsd', + find = 'gsf', + find_left = 'gsF', + highlight = 'gsh', + replace = 'gsr', + update_n_lines = 'gsn', suffix_last = 'l', -- Suffix to search with "prev" method suffix_next = 'n', -- Suffix to search with "next" method diff --git a/lua/plugins/list.lua b/lua/plugins/list.lua index 3da1eeb..32f6c17 100644 --- a/lua/plugins/list.lua +++ b/lua/plugins/list.lua @@ -60,10 +60,7 @@ local plugins = { config = load_config('editor.treesitter'), event = { 'BufReadPost', 'BufNewFile' }, }, - { - 'windwp/nvim-ts-autotag', - event = 'InsertEnter', - }, + { 'echasnovski/mini.bracketed', config = load_config('editor.bracketed'), @@ -139,6 +136,7 @@ local plugins = { dependencies = { 'rafamadriz/friendly-snippets', 'Kaiser-Yang/blink-cmp-avante', + 'windwp/nvim-ts-autotag', { 'L3MON4D3/LuaSnip', config = function() @@ -263,6 +261,11 @@ local plugins = { keymap.set('x', 's', substitute.visual, { desc = 'Substitute in visual mode' }) end, }, + { + 'davidmh/mdx.nvim', + config = true, + lazy = false, + }, { 'numToStr/Navigator.nvim', config = load_config('tools.navigator'), diff --git a/lua/plugins/lock.json b/lua/plugins/lock.json index 62cd816..ff79d07 100644 --- a/lua/plugins/lock.json +++ b/lua/plugins/lock.json @@ -24,6 +24,7 @@ "mason-conform.nvim": { "branch": "main", "commit": "f3b96fa2217fcb1513301eefbe10ea0e765e33eb" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "bb3a17efc797c34c054463174e5522442576ebd8" }, "mason.nvim": { "branch": "main", "commit": "8024d64e1330b86044fed4c8494ef3dcd483a67c" }, + "mdx.nvim": { "branch": "main", "commit": "464a74be368dce212cff02f6305845dc7f209ab3" }, "mini.ai": { "branch": "main", "commit": "e139eb1101beb0250fea322f8c07a42f0f175688" }, "mini.bracketed": { "branch": "main", "commit": "4a005a6e5aad58230b69f0f59df2cbb8b1c2e643" }, "mini.files": { "branch": "main", "commit": "49c855977e9f4821d1ed8179ed44fe098b93ea2a" },