A RetroSearch Logo

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

Search Query:

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

add support for patch files · neovim/neovim@27b664a · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+8

-0

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+8

-0

lines changed Original file line number Diff line number Diff line change

@@ -770,6 +770,14 @@ local extension = {

770 770

mm = function() vim.fn["dist#ft#FTmm"]() end,

771 771

mms = function() vim.fn["dist#ft#FTmms"]() end,

772 772

p = function() vim.fn["dist#ft#FTprogress_pascal"]() end,

773 +

patch = function(path, bufnr)

774 +

local firstline = getline(bufnr, 1)

775 +

if string.find(firstline, "^From " .. string.rep("%x", 40) .. "+ Mon Sep 17 00:00:00 2001$") then

776 +

return "gitsendemail"

777 +

else

778 +

return "diff"

779 +

end

780 +

end,

773 781

pl = function() vim.fn["dist#ft#FTpl"]() end,

774 782

pp = function() vim.fn["dist#ft#FTpp"]() end,

775 783

pro = function() vim.fn["dist#ft#ProtoCheck"]('idlang') end,

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