summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/ftplugin/query.lua
AgeCommit message (Collapse)AuthorFiles
2026-04-08feat(api): rename buffer to buf #35330Jordan1
Problem: `:help dev-name-common` states that "buf" should be used instead of "buffer" but there are cases where buffer is mentioned in the lua API. Solution: - Rename occurrences of "buffer" to "buf" for consistency with the documentation. - Support (but deprecate) "buffer" for backwards compatibility. Co-authored-by: Justin M. Keyes <justinkz@gmail.com>
2026-02-18feat(defaults): don't enable treesitter query linterChristian Clason1
This was added before there was a dedicated language server for tree-sitter queries. Now that https://github.com/ribru17/ts_query_ls exists, this is a better option in every regard (and up to now required manually disabling the builtin linter to avoid duplicate diagnostics and performance issues).
2025-01-14refactor: use nvim.foo.bar format for autocommand groupsMaria José Solano1
2024-11-21docs: misc (#31138)dundargoc1
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2024-09-23fix(runtime): treat b:undo_ftplugin consistently in Lua ftplugins (#30473)zeertzjq1
- Don't assume b:undo_ftplugin is set when first modifying it. - Don't assume b:undo_ftplugin already contains some resetting.
2024-07-03fix(runtime): stop treesitter highlight in b:undo_ftplugin (#29533)zeertzjq1
It seems that nvim-treesitter stops treesitter highlight when changing filetype, so it makes sense for builtin ftplugins to do this as well. Use :call and v:lua here to allow separation with '|'.
2024-07-01fix(runtime): update b:undo_ftplugin in Lua runtime files (#29529)zeertzjq1
Related to #29506, but adding vim.treesitter.stop() to b:undo_ftplugin doesn't solve the problem yet.
2024-01-28docs: enforce "treesitter" spelling #27110Jongwook Choi1
It's the "tree-sitter" project, but "treesitter" in our code and docs.
2023-08-25feat(treesitter): add a query editor (#24703)Maria José Solano1
2023-04-30feat(treesitter): upstream query omnifunc from playground (#23394)Christian Clason1
and set by default in `ftplugin/query.lua`
2023-04-29feat(treesitter): add query_linter from nvim-treesitter/playground (#22784)Stephan Seitz1
Co-authored-by: clason <clason@users.noreply.github.com> Co-authored-by: lewis6991 <lewis6991@users.noreply.github.com>
2022-05-09chore: format runtime with styluaChristian Clason1
2022-03-31feat(runtime): add query filetype (#17905)Christian Clason1
used for Tree-sitter queries uses Lisp runtime files (in Lua to distinguish from upstream runtime files)