aboutsummaryrefslogtreecommitdiffstats
path: root/ftdetect
diff options
context:
space:
mode:
authorShatur95 <genaloner@gmail.com>2021-04-24 17:29:00 +0300
committerStephan Seitz <stephan.lauf@yahoo.de>2021-05-08 12:44:25 +0200
commit9e0f764b675d987bbdd45af38531cc864c8cfc4c (patch)
treef6668a38948db445fab154c1f412a2752daca5fb /ftdetect
parentAdd GDScript filetype (diff)
downloadnvim-treesitter-9e0f764b675d987bbdd45af38531cc864c8cfc4c.tar
nvim-treesitter-9e0f764b675d987bbdd45af38531cc864c8cfc4c.tar.gz
nvim-treesitter-9e0f764b675d987bbdd45af38531cc864c8cfc4c.tar.bz2
nvim-treesitter-9e0f764b675d987bbdd45af38531cc864c8cfc4c.tar.lz
nvim-treesitter-9e0f764b675d987bbdd45af38531cc864c8cfc4c.tar.xz
nvim-treesitter-9e0f764b675d987bbdd45af38531cc864c8cfc4c.tar.zst
nvim-treesitter-9e0f764b675d987bbdd45af38531cc864c8cfc4c.zip
Use BufNewFile,BufRead for query filetype
Diffstat (limited to 'ftdetect')
-rw-r--r--ftdetect/query.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/ftdetect/query.vim b/ftdetect/query.vim
index 182242754..8339b6ba9 100644
--- a/ftdetect/query.vim
+++ b/ftdetect/query.vim
@@ -8,4 +8,4 @@ function! s:shouldFt(path)
endif
endfunction
-autocmd BufEnter,BufNewFile *.scm call s:shouldFt(expand("%"))
+autocmd BufNewFile,BufRead *.scm call s:shouldFt(expand("%"))