luckasRanarison / nvim-devdocs

Neovim DevDocs integration
MIT License
270 stars 20 forks source link

How can I add additional filetypes eg Clojure? #53

Closed oryband closed 12 months ago

oryband commented 1 year ago

I would like to add .clj and .cljs filetypes to open clojure-1.11. How can I do that?

luckasRanarison commented 1 year ago

You can't define custom filetypes in the user config for now. The filetypes are defined in filetypes.lua, I could add it for a quickfix but there's already a feature request for making filetypes more flexible #30 and it's a better idea than extending the above file. I'm working on other things now but that should be possible soon.

luckasRanarison commented 12 months ago

Closure docs should be automatically detected now, and you can also define custom mappings with the new filetypes config.