feat(runtime): add query filetype (#17905)

used for Tree-sitter queries
uses Lisp runtime files

(in Lua to distinguish from upstream runtime files)
This commit is contained in:
Christian Clason
2022-03-31 16:46:45 +02:00
committed by GitHub
parent ea8ad79990
commit 2e85af47d2
3 changed files with 14 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
-- Neovim filetype plugin file
-- Language: Tree-sitter query
-- Last Change: 2022 Mar 29
-- it's a lisp!
vim.cmd [[ runtime! ftplugin/lisp.vim ]]

6
runtime/indent/query.lua Normal file
View File

@@ -0,0 +1,6 @@
-- Neovim indent file
-- Language: Tree-sitter query
-- Last Change: 2022 Mar 29
-- it's a lisp!
vim.cmd [[ runtime! indent/lisp.vim ]]

View File

@@ -1424,6 +1424,8 @@ local pattern = {
return "git"
end
end,
-- Neovim only
[".*/queries/.*%.scm"] = "query", -- tree-sitter queries
-- END PATTERN
}
-- luacheck: pop