Skip to content

Commit

Permalink
Set ft=markdown.agda for *.lagda.md
Browse files Browse the repository at this point in the history
This allows the markdown treesitter plugin to run automatically.
Previously the intention was to set ft=agda.markdown, but this indicates
that agda is the primary filetype, when this is not true. Furthermore,
this would not be set since it would be overwritten by the *.lagda.*
autocommand.

Fixes #157
  • Loading branch information
4e554c4c committed Jan 15, 2025
1 parent 2f43eb1 commit fd61ff3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ftdetect/agda.vim
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
au BufNewFile,BufRead *.agda setlocal filetype=agda
au BufNewFile,BufRead *.lagda setlocal filetype=agda
au BufNewFile,BufRead *.lagda.md setlocal filetype=agda.markdown
au BufNewFile,BufRead *.lagda.* setlocal filetype=agda
au BufNewFile,BufRead *.lagda.md setlocal filetype=markdown.agda

0 comments on commit fd61ff3

Please sign in to comment.