From 88b699b595703f1ae9d9061c050e52b1fe7c33f1 Mon Sep 17 00:00:00 2001 From: emmanueltouzery Date: Mon, 3 Jun 2024 21:29:37 +0200 Subject: 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. --- lua/conform/ft_to_ext.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 lua/conform/ft_to_ext.lua (limited to 'lua/conform/ft_to_ext.lua') 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", +} -- cgit v1.2.3-70-g09d2