diff --git a/lua/plugins/filetype.lua b/lua/plugins/filetype.lua index 70370d898..5b3c2b8b6 100644 --- a/lua/plugins/filetype.lua +++ b/lua/plugins/filetype.lua @@ -11,7 +11,7 @@ vis.ftdetect.filetypes = { ada = { ext = { "%.adb$", "%.ads$" }, }, - ansi_c = { + c = { ext = { "%.c$", "%.C$", "%.h$" }, mime = { "text/x-c" }, }, @@ -101,7 +101,7 @@ vis.ftdetect.filetypes = { diff = { ext = { "%.diff$", "%.patch$", "%.rej$" }, }, - dmd = { + d = { ext = { "%.d$", "%.di$" }, }, dockerfile = { @@ -141,6 +141,9 @@ vis.ftdetect.filetypes = { utility = { "^fish$" }, ext = { "%.fish$" }, }, + factor = { + ext = { "%.factor" }, + }, forth = { ext = { "%.forth$", "%.frt$", "%.fs$", "%.fth$" }, }, @@ -306,6 +309,9 @@ vis.ftdetect.filetypes = { nim = { ext = { "%.nim$" }, }, + nix = { + ext = { "%.nix$" }, + }, nsis = { ext = { "%.nsh$", "%.nsi$", "%.nsis$" }, }, @@ -389,7 +395,7 @@ vis.ftdetect.filetypes = { rpmspec = { ext = { "%.spec$" }, }, - rstats = { + r = { ext = { "%.R$", "%.Rout$", "%.Rhistory$", "%.Rt$", "Rout.save", "Rout.fail" }, }, ruby = { diff --git a/test/vis/text-objects/lexer.keys b/test/vis/text-objects/lexer.keys index b738fa5f7..d2dbdde97 100644 --- a/test/vis/text-objects/lexer.keys +++ b/test/vis/text-objects/lexer.keys @@ -1,4 +1,4 @@ -:set syntax ansi_c +:set syntax c :x/cafe ii :{ i/>/ a/