mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 01:10:02 -04:00
chore: remove all ftdetect with official support in Neovim/Vim
This commit is contained in:
parent
152af07ecf
commit
efc8ac6457
7 changed files with 0 additions and 37 deletions
|
|
@ -1,26 +0,0 @@
|
||||||
" Last Change: 2022 Jan 08
|
|
||||||
|
|
||||||
function! s:foamFile(path)
|
|
||||||
" Return if file type already set
|
|
||||||
if (&filetype == 'foam')
|
|
||||||
return
|
|
||||||
endif
|
|
||||||
|
|
||||||
let l:lines = getline(1, 15)
|
|
||||||
let l:f = -1
|
|
||||||
let l:o = -1
|
|
||||||
for line in lines
|
|
||||||
if (match(line, '\CFoamFile') >= 0)
|
|
||||||
let l:f = index(lines, line)
|
|
||||||
endif
|
|
||||||
if (match(line, '\Cobject') >= 0)
|
|
||||||
let l:o = index(lines, line)
|
|
||||||
endif
|
|
||||||
endfor
|
|
||||||
if ((l:o >= 0) && (l:f >= 0) && (l:o > l:f))
|
|
||||||
set filetype=foam
|
|
||||||
endif
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
autocmd FileType cpp call s:foamFile(expand("%"))
|
|
||||||
autocmd BufNewFile,BufRead *Dict,*Properties,fvSchemes,fvSolution,*/constant/g,*/0/* call s:foamFile(expand("%"))
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
au BufRead,BufNewFile *.ex,*.exs,mix.lock set filetype=elixir
|
|
||||||
au BufRead,BufNewFile *.eex,*.leex set filetype=eelixir
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
autocmd BufRead,BufNewFile *.fnl set filetype=fennel
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
autocmd BufRead,BufNewFile *.fish setfiletype fish
|
|
||||||
autocmd BufRead *
|
|
||||||
\ if getline(1) =~# '\v^#!%(\f*/|/usr/bin/env\s*<)fish>' |
|
|
||||||
\ setfiletype fish |
|
|
||||||
\ endif
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
au BufRead,BufNewFile go.mod set filetype=gomod
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
autocmd BufRead,BufNewFile *.jl setfiletype julia
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
autocmd BufRead,BufNewFile *.zig set filetype=zig
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue