Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
Add calls to SetFileType calls
Browse files Browse the repository at this point in the history
  • Loading branch information
nathom committed Feb 25, 2022
1 parent 3f05927 commit 25b5f7e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lua/filetype/mappings/function.lua
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ M.complex = {
end
end,
["%.bashrc.*"] = function()
vim.cmd([[dist#ft#SetFileTypeSH("bash")]])
vim.cmd([[call dist#ft#SetFileTypeSH("bash")]])
end,
["%.bash[_-]profile"] = function()
vim.cmd([[call dist#ft#SetFileTypeSH("bash")]])
Expand All @@ -565,25 +565,25 @@ M.complex = {
vim.cmd([[call dist#ft#SetFileTypeSH("bash")]])
end,
["PKGBUILD.*"] = function()
vim.cmd([[dist#ft#SetFileTypeSH("bash")]])
vim.cmd([[call dist#ft#SetFileTypeSH("bash")]])
end,
["APKBUILD.*"] = function()
vim.cmd([[dist#ft#SetFileTypeSH("bash")]])
vim.cmd([[call dist#ft#SetFileTypeSH("bash")]])
end,
["%.kshrc.*"] = function()
vim.cmd([[dist#ft#SetFileTypeSH("ksh")]])
vim.cmd([[call dist#ft#SetFileTypeSH("ksh")]])
end,
["%.profile.*"] = function()
vim.cmd([[dist#ft#SetFileTypeSH(getline(1))]])
vim.cmd([[call dist#ft#SetFileTypeSH(getline(1))]])
end,
["%.tcshrc.*"] = function()
vim.cmd([[dist#ft#SetFileTypeShell("tcsh")]])
vim.cmd([[call dist#ft#SetFileTypeShell("tcsh")]])
end,
["%.login.*"] = function()
vim.cmd([[dist#ft#CSH()]])
vim.cmd([[call dist#ft#CSH()]])
end,
["%.cshrc.*"] = function()
vim.cmd([[dist#ft#CSH()]])
vim.cmd([[call dist#ft#CSH()]])
end,
}

Expand Down

0 comments on commit 25b5f7e

Please sign in to comment.