piersolenski / telescope-import.nvim

Import modules with ease
186 stars 8 forks source link

feat: user-defined custom_languages config take priority #21

Closed bujesse closed 8 months ago

bujesse commented 9 months ago

Makes user-defined custom_languages config take priority over default language configs.

The function that picks which config to use simply chooses the first to match the filetype: https://github.com/piersolenski/telescope-import.nvim/blob/0270f1438c0ac91663146a73a213bfdc536a8cb5/lua/import/find_imports.lua#L14

fixes #17, because users can define their own language config which they could make fish-compatible by escaping the $

piersolenski commented 8 months ago

Simple yet smart! Thanks!