mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 17:36:29 +00:00
vim-patch:8.2.4664: Elvish files are not recognized (#17963)
Problem: Elvish files are not recognized.
Solution: Recognize .elv files. (Bruno Roque, closes vim/vim#10058)
c1658a196b
This commit is contained in:
@@ -416,6 +416,9 @@ au BufNewFile,BufRead *.ex call dist#ft#ExCheck()
|
||||
au BufRead,BufNewFile mix.lock,*.exs setf elixir
|
||||
au BufRead,BufNewFile *.eex,*.leex setf eelixir
|
||||
|
||||
" Elvish
|
||||
au BufRead,BufNewFile *.elv setf elvish
|
||||
|
||||
" Euphoria 3 or 4
|
||||
au BufNewFile,BufRead *.eu,*.ew,*.exu,*.exw call dist#ft#EuphoriaCheck()
|
||||
if has("fname_case")
|
||||
|
@@ -177,6 +177,7 @@ local extension = {
|
||||
leex = "eelixir",
|
||||
exs = "elixir",
|
||||
elm = "elm",
|
||||
elv = "elvish",
|
||||
epp = "epuppet",
|
||||
erl = "erlang",
|
||||
hrl = "erlang",
|
||||
|
@@ -168,6 +168,7 @@ let s:filename_checks = {
|
||||
\ 'eelixir': ['file.eex', 'file.leex'],
|
||||
\ 'elm': ['file.elm'],
|
||||
\ 'elmfilt': ['filter-rules'],
|
||||
\ 'elvish': ['file.elv'],
|
||||
\ 'epuppet': ['file.epp'],
|
||||
\ 'erlang': ['file.erl', 'file.hrl', 'file.yaws'],
|
||||
\ 'eruby': ['file.erb', 'file.rhtml'],
|
||||
|
Reference in New Issue
Block a user