]> git.wincent.com - wincent.git/commitdiff
feat(nvim): detect new ".mts", ".cts" TypeScript extensions main master
authorGreg Hurrell <greg@hurrell.net>
Tue, 2 Aug 2022 17:16:57 +0000 (19:16 +0200)
committerGreg Hurrell <greg@hurrell.net>
Tue, 2 Aug 2022 17:16:57 +0000 (19:16 +0200)
aspects/nvim/files/.config/nvim/ftdetect/typescript.lua [new file with mode: 0644]

diff --git a/aspects/nvim/files/.config/nvim/ftdetect/typescript.lua b/aspects/nvim/files/.config/nvim/ftdetect/typescript.lua
new file mode 100644 (file)
index 0000000..b01f846
--- /dev/null
@@ -0,0 +1,2 @@
+-- New extensions: https://www.typescriptlang.org/docs/handbook/esm-node.html#new-file-extensions
+wincent.vim.autocmd('BufNewFile,BufRead', '*.cts,*.mts', 'noautocmd set filetype=typescript')