Overview
The:TSUninstall command deletes the parser and query files for one or more languages from the nvim-treesitter installation directory.
Syntax
One or more language names to uninstall. Can be:
- Specific language names (e.g.,
rust,javascript,python) all- Remove all installed parsers
Behavior
- Removes both the parser binary and associated query files
- Requires at least one language argument
- Tab completion shows installed parsers
- Operation displays a summary of removed parsers
This command only removes parsers installed via nvim-treesitter in its configured installation directory. Parsers from other sources on
runtimepath are not affected.Examples
Uninstall a single language
Uninstall multiple languages
Uninstall all parsers
Using
:TSUninstall all will remove all parsers. This action cannot be undone, though parsers can be reinstalled with :TSInstall.Use Cases
Free up disk space
Remove parsers for languages you no longer work with:Clean reinstall
Remove and reinstall a parser that may be corrupted:Manage parser versions
Uninstall before switching to parsers from another source or version.Checking Installed Parsers
Before uninstalling, you can check what’s installed:Using Lua API
Using health check
Related Commands
:TSInstall- Install new parsers:TSUpdate- Update installed parsers:TSLog- View uninstall operation logs
Source Implementation
Implemented inplugin/nvim-treesitter.lua:62-69: