Skip to content

Commit

Permalink
accommodate vis for changes with updates in the lexers
Browse files Browse the repository at this point in the history
  • Loading branch information
mcepl authored and rnpnr committed Jan 4, 2025
1 parent 10d045c commit 6d362f2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions lua/plugins/filetype.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ vis.ftdetect.filetypes = {
ada = {
ext = { "%.adb$", "%.ads$" },
},
ansi_c = {
c = {
ext = { "%.c$", "%.C$", "%.h$" },
mime = { "text/x-c" },
},
Expand Down Expand Up @@ -101,7 +101,7 @@ vis.ftdetect.filetypes = {
diff = {
ext = { "%.diff$", "%.patch$", "%.rej$" },
},
dmd = {
d = {
ext = { "%.d$", "%.di$" },
},
dockerfile = {
Expand Down Expand Up @@ -141,6 +141,9 @@ vis.ftdetect.filetypes = {
utility = { "^fish$" },
ext = { "%.fish$" },
},
factor = {
ext = { "%.factor" },
},
forth = {
ext = { "%.forth$", "%.frt$", "%.fs$", "%.fth$" },
},
Expand Down Expand Up @@ -306,6 +309,9 @@ vis.ftdetect.filetypes = {
nim = {
ext = { "%.nim$" },
},
nix = {
ext = { "%.nix$" },
},
nsis = {
ext = { "%.nsh$", "%.nsi$", "%.nsis$" },
},
Expand Down Expand Up @@ -389,7 +395,7 @@ vis.ftdetect.filetypes = {
rpmspec = {
ext = { "%.spec$" },
},
rstats = {
r = {
ext = { "%.R$", "%.Rout$", "%.Rhistory$", "%.Rt$", "Rout.save", "Rout.fail" },
},
ruby = {
Expand Down
2 changes: 1 addition & 1 deletion test/vis/text-objects/lexer.keys
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
:set syntax ansi_c<Enter>
:set syntax c<Enter>
:x/cafe<Enter>
ii
:{ i/>/ a/</ }<Enter>
Expand Down

0 comments on commit 6d362f2

Please sign in to comment.