feat: MDX for nvchad

laptop
Elias Almqvist 8 months ago
parent a4aadb6a80
commit 7b1fabb242
No known key found for this signature in database
GPG Key ID: E31A99CE3E75A158
  1. 5
      nvchad/.config/nvim/lua/custom/init.lua
  2. 31
      nvchad/.config/nvim/lua/custom/plugins.lua

@ -5,3 +5,8 @@
-- pattern = "*",
-- command = "tabdo wincmd =",
-- })
vim.filetype.add({
extension = {
mdx = 'mdx'
}
})

@ -47,18 +47,18 @@ local plugins = {
end,
},
{
"github/copilot.vim",
lazy = false,
config = function()
-- Mapping tab is already used by NvChad
vim.g.copilot_no_tab_map = true;
vim.g.copilot_assume_mapped = true;
vim.g.copilot_tab_fallback = "";
-- The mapping is set to other key, see custom/lua/mappings
-- or run <leader>ch to see copilot mapping section
end
},
{
"github/copilot.vim",
lazy = false,
config = function()
-- Mapping tab is already used by NvChad
vim.g.copilot_no_tab_map = true
vim.g.copilot_assume_mapped = true
vim.g.copilot_tab_fallback = ""
-- The mapping is set to other key, see custom/lua/mappings
-- or run <leader>ch to see copilot mapping section
end,
},
{
"nvim-treesitter/nvim-treesitter",
@ -66,6 +66,13 @@ local plugins = {
"JoosepAlviste/nvim-ts-context-commentstring",
},
opts = overrides.treesitter,
config = function(_, opts)
dofile(vim.g.base46_cache .. "syntax")
require("nvim-treesitter.configs").setup(opts)
-- use markdown parser for mdx files
vim.treesitter.language.register("mdx", "markdown", "tsx")
end,
},
{

Loading…
Cancel
Save