A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/neovim/neovim/commit/a45b578dbe6ba02ba9a052a7b058f4243d38a07b below:

add support for txt files (#16926) · neovim/neovim@a45b578 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+7

-0

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+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