Skip to content

Commit 427faff

Browse files
committed
feat: update language normalization map
1 parent ca60820 commit 427faff

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

lua/copilot/util.lua

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,21 @@ local eol_by_fileformat = {
128128
}
129129

130130
local language_normalization_map = {
131+
bash = "shellscript",
132+
bst = "bibtex",
133+
cs = "csharp",
134+
cuda = "cuda-cpp",
135+
dosbatch = "bat",
136+
dosini = "ini",
137+
gitcommit = "git-commit",
138+
gitrebase = "git-rebase",
139+
make = "makefile",
140+
objc = "objective-c",
141+
objcpp = "objective-cpp",
142+
ps1 = "powershell",
143+
raku = "perl6",
144+
sh = "shellscript",
131145
text = "plaintext",
132-
javascriptreact = "javascript",
133-
jsx = "javascript",
134-
typescriptreact = "typescript",
135146
}
136147

137148
local function language_for_file_type(filetype)

0 commit comments

Comments
 (0)