mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 11:36:54 -04:00
Fixed linting issues
This commit is contained in:
parent
7dccbbad6c
commit
5f60666d97
2 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue