Replies: 1 comment 1 reply
-
vim.filetype.add might be what you're looking for. I have a setup that is as follows: vim.filetype.add({
pattern = {
[".*%.scm"] = "query",
[".*%.envrc"] = "bash"
},
filename = {
-- set filetype for todo.txt files
["todo.txt"] = "todotxt",
["done.txt"] = "todotxt",
["rifle.conf"] = "rifleconfig"
},
extension = { mdx = "markdown" }
}) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I can't figure out how to allow the marksman lsp and formatter to work on vimwiki files.
:set ft?
on vimwiki shows a filetype ofvimwiki
instead ofmarkdown
. There's afiletypes =
option for marksman but I don't know how or where to set that. Any help would be appreciated. Thanks!Beta Was this translation helpful? Give feedback.
All reactions