diff options
author | emmanueltouzery <etouzery@gmail.com> | 2024-06-03 21:29:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-03 12:29:37 -0700 |
commit | 88b699b595703f1ae9d9061c050e52b1fe7c33f1 (patch) | |
tree | 8fba875c46f812bdc75373dd53094cf1f7cf0a2c /lua/conform/ft_to_ext.lua | |
parent | 7159a23d19fb982269dae2e8147ebbe34965095b (diff) |
fix: set correct file extension for unsaved buffer temp files (#440)
the extension used to be always the file type, be smarter now. For
instance prettier wouldn't recognize a `.typescript` extension.
Diffstat (limited to 'lua/conform/ft_to_ext.lua')
-rw-r--r-- | lua/conform/ft_to_ext.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lua/conform/ft_to_ext.lua b/lua/conform/ft_to_ext.lua new file mode 100644 index 0000000..7c6e195 --- /dev/null +++ b/lua/conform/ft_to_ext.lua @@ -0,0 +1,13 @@ +return { + elixir = "ex", + graphql = "gql", + javascript = "js", + javascriptreact = "jsx", + markdown = "md", + perl = "pl", + python = "py", + ruby = "rb", + rust = "rs", + typescript = "ts", + typescriptreact = "tsx", +} |