feat: add query filetype

This commit is contained in:
Thomas Vigouroux
2020-09-01 10:16:05 +02:00
parent bc36521967
commit 5a230e6c07

11
ftdetect/query.vim Normal file
View File

@@ -0,0 +1,11 @@
" Last Change: 2020 Sep 01
function! s:shouldFt(path)
let l:q_dir = fnamemodify(a:path, ":p:h:h:t")
if l:q_dir =~? "queries"
setlocal ft=query
endif
endfunction
autocmd BufEnter,BufNewFile *.scm call s:shouldFt(expand("%"))