mirror of
https://github.com/neovim/neovim.git
synced 2026-02-22 10:22:17 +10:00
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:
committed by
Christian Clason
parent
abfe6c9ef7
commit
3bdebfb87f
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user