mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 11:06:54 -04:00
fix(config): check both installed parsers and queries
Problem: Can't uninstall custom parsers without queries since `installed_parsers` only iterates over installed queries (to include query-only languages, and to avoid string manipulation). Solution: Iterate over both queries and parsers to collect list of installed languages (optionally only queries or only parsers).
This commit is contained in:
parent
03c9048090
commit
0860b9b107
6 changed files with 24 additions and 18 deletions
|
|
@ -21,7 +21,7 @@ local function complete_installed_parsers(arglead)
|
|||
function(v)
|
||||
return v:find(arglead) ~= nil
|
||||
end,
|
||||
require('nvim-treesitter.config').installed_parsers()
|
||||
require('nvim-treesitter.config').installed_languages()
|
||||
)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue