feat(defaults): don't enable treesitter query linter

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).
This commit is contained in:
Christian Clason
2026-02-18 12:11:15 +01:00
committed by Christian Clason
parent abfe6c9ef7
commit 3bdebfb87f
3 changed files with 10 additions and 7 deletions

View File

@@ -17,7 +17,7 @@ vim.opt_local.iskeyword:append('.')
-- query linter
local buf = vim.api.nvim_get_current_buf()
local query_lint_on = vim.g.query_lint_on or { 'BufEnter', 'BufWrite' }
local query_lint_on = vim.g.query_lint_on or {}
if not vim.b.disable_query_linter and #query_lint_on > 0 then
vim.api.nvim_create_autocmd(query_lint_on, {