Skip to content

Commit f8c4b0d

Browse files
committed
Detect .mdx files as markdown
1 parent dc998ce commit f8c4b0d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.config/nvim/init.lua

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,16 @@ opt.sessionoptions:remove('options')
206206
-- Swapfile messages
207207
opt.shortmess:append('A')
208208

209+
--------------------------------------------------------------------------------
210+
-- FILETYPE DETECTION
211+
--------------------------------------------------------------------------------
212+
213+
vim.filetype.add({
214+
extension = {
215+
mdx = 'markdown',
216+
},
217+
})
218+
209219
--------------------------------------------------------------------------------
210220
-- KEY MAPPINGS
211221
--------------------------------------------------------------------------------

0 commit comments

Comments
 (0)