+7
-0
lines changedFilter options
+7
-0
lines changed Original file line number Diff line number Diff line change
@@ -787,6 +787,12 @@ local extension = {
787
787
xml = function() vim.fn["dist#ft#FTxml"]() end,
788
788
y = function() vim.fn["dist#ft#FTy"]() end,
789
789
zsql = function() vim.fn["dist#ft#SQL"]() end,
790
+
txt = function(path, bufnr)
791
+
--helpfiles match *.txt, but should have a modeline as last line
792
+
if not getline(bufnr, -1):match("vim:.*ft=help") then
793
+
return "text"
794
+
end
795
+
end,
790
796
-- END EXTENSION
791
797
}
792
798
@@ -1325,6 +1331,7 @@ local pattern = {
1325
1331
["tmac%..*"] = starsetf('nroff'),
1326
1332
["zlog.*"] = starsetf('zsh'),
1327
1333
["zsh.*"] = starsetf('zsh'),
1334
+
["ae%d+%.txt"] = 'mail',
1328
1335
-- END PATTERN
1329
1336
}
1330
1337
-- luacheck: pop
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4