From 639772bfe2d6edcc9a0ccb5f22c579a61e184f19 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Wed, 24 Sep 2025 09:09:48 +0545 Subject: [PATCH] feat(editor): add mdx.nvim plugin for improved markdown editing --- lazy-lock.json | 3 ++- lua/plugins/editor.lua | 41 +++++++++++++++++++++++++++++++++------ lua/plugins/languages.lua | 2 +- 3 files changed, 38 insertions(+), 8 deletions(-) diff --git a/lazy-lock.json b/lazy-lock.json index dda27ee..45d568e 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -19,6 +19,7 @@ "mason-lspconfig.nvim": { "branch": "main", "commit": "7f9a39fcd2ac6e979001f857727d606888f5909c" }, "mason-nvim-lint": { "branch": "main", "commit": "767b8ccdddaa977bec8987fd7507b9865a279235" }, "mason.nvim": { "branch": "main", "commit": "7dc4facca9702f95353d5a1f87daf23d78e31c2a" }, + "mdx.nvim": { "branch": "main", "commit": "464a74be368dce212cff02f6305845dc7f209ab3" }, "mini.ai": { "branch": "main", "commit": "e139eb1101beb0250fea322f8c07a42f0f175688" }, "mini.bracketed": { "branch": "main", "commit": "672b4e2fe9222fd4d5a104ff23217801bae37046" }, "mini.files": { "branch": "main", "commit": "49c855977e9f4821d1ed8179ed44fe098b93ea2a" }, @@ -30,7 +31,7 @@ "nvim-autopairs": { "branch": "master", "commit": "23320e75953ac82e559c610bec5a90d9c6dfa743" }, "nvim-genghis": { "branch": "main", "commit": "cdf584d05ffc9d5c1f247079991552249e4f7487" }, "nvim-lint": { "branch": "master", "commit": "0864f81c681e15d9bdc1156fe3a17bd07db5a3ed" }, - "nvim-lspconfig": { "branch": "master", "commit": "1f7fbc34e6420476142b5cc85e9bee52717540fb" }, + "nvim-lspconfig": { "branch": "master", "commit": "107c2458cdc780c4ed2c2b5e1b7800cd019010bd" }, "nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" }, "nvim-ts-autotag": { "branch": "main", "commit": "c4ca798ab95b316a768d51eaaaee48f64a4a46bc" }, "nvim-ts-context-commentstring": { "branch": "main", "commit": "1b212c2eee76d787bbea6aa5e92a2b534e7b4f8f" }, diff --git a/lua/plugins/editor.lua b/lua/plugins/editor.lua index 9240603..2dfce6e 100644 --- a/lua/plugins/editor.lua +++ b/lua/plugins/editor.lua @@ -101,12 +101,36 @@ return { }) end, keys = { - { 'gcc', mode = 'n', desc = 'Toggle comment line' }, - { 'gc', mode = { 'n', 'o' }, desc = 'Toggle comment linewise' }, - { 'gc', mode = 'x', desc = 'Toggle comment linewise (visual)' }, - { 'gbc', mode = 'n', desc = 'Toggle comment block' }, - { 'gb', mode = { 'n', 'o' }, desc = 'Toggle comment blockwise' }, - { 'gb', mode = 'x', desc = 'Toggle comment blockwise (visual)' }, + { + 'gcc', + mode = 'n', + desc = 'Toggle comment line', + }, + { + 'gc', + mode = { 'n', 'o' }, + desc = 'Toggle comment linewise', + }, + { + 'gc', + mode = 'x', + desc = 'Toggle comment linewise (visual)', + }, + { + 'gbc', + mode = 'n', + desc = 'Toggle comment block', + }, + { + 'gb', + mode = { 'n', 'o' }, + desc = 'Toggle comment blockwise', + }, + { + 'gb', + mode = 'x', + desc = 'Toggle comment blockwise (visual)', + }, { '/', "lua require('Comment.api').toggle.linewise.current()", desc = 'Toggle comment' }, { '/', @@ -180,4 +204,9 @@ return { } end, }, + { + 'davidmh/mdx.nvim', + config = true, + dependencies = { 'nvim-treesitter/nvim-treesitter' }, + }, } diff --git a/lua/plugins/languages.lua b/lua/plugins/languages.lua index 062f93d..7d2c1ab 100644 --- a/lua/plugins/languages.lua +++ b/lua/plugins/languages.lua @@ -22,7 +22,7 @@ return { 'yaml', 'toml', 'javascript', - 'ts_ls', + 'typescript', 'gitignore', 'go', 'rust',