aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-treesitter/install.lua2
-rw-r--r--lua/nvim-treesitter/utils.lua3
2 files changed, 3 insertions, 2 deletions
diff --git a/lua/nvim-treesitter/install.lua b/lua/nvim-treesitter/install.lua
index 0df12cb0a..c2bdc9343 100644
--- a/lua/nvim-treesitter/install.lua
+++ b/lua/nvim-treesitter/install.lua
@@ -398,7 +398,7 @@ function M.uninstall(...)
if vim.tbl_contains({'all', 'maintained'}, ...) then
reset_progress_counter()
local installed = info.installed_parsers()
- if lang == "maintained" then
+ if ... == "maintained" then
local maintained = parsers.maintained_parsers()
installed = vim.tbl_filter(function(l) return vim.tbl_contains(maintained, l) end, installed)
end
diff --git a/lua/nvim-treesitter/utils.lua b/lua/nvim-treesitter/utils.lua
index 437385a34..947bd56fc 100644
--- a/lua/nvim-treesitter/utils.lua
+++ b/lua/nvim-treesitter/utils.lua
@@ -6,7 +6,8 @@ local M = {}
function M.setup_commands(mod, commands)
for command_name, def in pairs(commands) do
- local call_fn = string.format("lua require'nvim-treesitter.%s'.commands.%s['run<bang>'](<f-args>)", mod, command_name)
+ local call_fn = string.format("lua require'nvim-treesitter.%s'.commands.%s['run<bang>'](<f-args>)",
+ mod, command_name)
local parts = vim.tbl_flatten({
"command!",
def.args,