feat(editor): add mdx.nvim plugin for improved markdown editing

This commit is contained in:
sankalp committed 2025-09-24 09:09:48 +05:45
1 parent 9207dfa01f
commit 639772bfe2
3 files changed
+38 -8

No files matched your search

+2 -1
View File
@@ -19,6 +19,7 @@
"mason-lspconfig.nvim": { "branch": "main", "commit": "7f9a39fcd2ac6e979001f857727d606888f5909c" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "7f9a39fcd2ac6e979001f857727d606888f5909c" },
"mason-nvim-lint": { "branch": "main", "commit": "767b8ccdddaa977bec8987fd7507b9865a279235" }, "mason-nvim-lint": { "branch": "main", "commit": "767b8ccdddaa977bec8987fd7507b9865a279235" },
"mason.nvim": { "branch": "main", "commit": "7dc4facca9702f95353d5a1f87daf23d78e31c2a" }, "mason.nvim": { "branch": "main", "commit": "7dc4facca9702f95353d5a1f87daf23d78e31c2a" },
"mdx.nvim": { "branch": "main", "commit": "464a74be368dce212cff02f6305845dc7f209ab3" },
"mini.ai": { "branch": "main", "commit": "e139eb1101beb0250fea322f8c07a42f0f175688" }, "mini.ai": { "branch": "main", "commit": "e139eb1101beb0250fea322f8c07a42f0f175688" },
"mini.bracketed": { "branch": "main", "commit": "672b4e2fe9222fd4d5a104ff23217801bae37046" }, "mini.bracketed": { "branch": "main", "commit": "672b4e2fe9222fd4d5a104ff23217801bae37046" },
"mini.files": { "branch": "main", "commit": "49c855977e9f4821d1ed8179ed44fe098b93ea2a" }, "mini.files": { "branch": "main", "commit": "49c855977e9f4821d1ed8179ed44fe098b93ea2a" },
@@ -30,7 +31,7 @@
"nvim-autopairs": { "branch": "master", "commit": "23320e75953ac82e559c610bec5a90d9c6dfa743" }, "nvim-autopairs": { "branch": "master", "commit": "23320e75953ac82e559c610bec5a90d9c6dfa743" },
"nvim-genghis": { "branch": "main", "commit": "cdf584d05ffc9d5c1f247079991552249e4f7487" }, "nvim-genghis": { "branch": "main", "commit": "cdf584d05ffc9d5c1f247079991552249e4f7487" },
"nvim-lint": { "branch": "master", "commit": "0864f81c681e15d9bdc1156fe3a17bd07db5a3ed" }, "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-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
"nvim-ts-autotag": { "branch": "main", "commit": "c4ca798ab95b316a768d51eaaaee48f64a4a46bc" }, "nvim-ts-autotag": { "branch": "main", "commit": "c4ca798ab95b316a768d51eaaaee48f64a4a46bc" },
"nvim-ts-context-commentstring": { "branch": "main", "commit": "1b212c2eee76d787bbea6aa5e92a2b534e7b4f8f" }, "nvim-ts-context-commentstring": { "branch": "main", "commit": "1b212c2eee76d787bbea6aa5e92a2b534e7b4f8f" },
+35 -6
View File
@@ -101,12 +101,36 @@ return {
}) })
end, end,
keys = { keys = {
{ 'gcc', mode = 'n', desc = 'Toggle comment line' }, {
{ 'gc', mode = { 'n', 'o' }, desc = 'Toggle comment linewise' }, 'gcc',
{ 'gc', mode = 'x', desc = 'Toggle comment linewise (visual)' }, mode = 'n',
{ 'gbc', mode = 'n', desc = 'Toggle comment block' }, desc = 'Toggle comment line',
{ 'gb', mode = { 'n', 'o' }, desc = 'Toggle comment blockwise' }, },
{ 'gb', mode = 'x', desc = 'Toggle comment blockwise (visual)' }, {
'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)',
},
{ '<leader>/', "<cmd>lua require('Comment.api').toggle.linewise.current()<cr>", desc = 'Toggle comment' }, { '<leader>/', "<cmd>lua require('Comment.api').toggle.linewise.current()<cr>", desc = 'Toggle comment' },
{ {
'<leader>/', '<leader>/',
@@ -180,4 +204,9 @@ return {
} }
end, end,
}, },
{
'davidmh/mdx.nvim',
config = true,
dependencies = { 'nvim-treesitter/nvim-treesitter' },
},
} }
+1 -1
View File
@@ -22,7 +22,7 @@ return {
'yaml', 'yaml',
'toml', 'toml',
'javascript', 'javascript',
'ts_ls', 'typescript',
'gitignore', 'gitignore',
'go', 'go',
'rust', 'rust',