feat: remove unused vars
This commit is contained in:
parent
ae1df3e7a8
commit
655e032471
1 changed files with 0 additions and 16 deletions
|
|
@ -15,22 +15,6 @@ function M.check()
|
||||||
else
|
else
|
||||||
vim.health.warn('vim-fugitive not detected (required for this plugin to be useful)')
|
vim.health.warn('vim-fugitive not detected (required for this plugin to be useful)')
|
||||||
end
|
end
|
||||||
|
|
||||||
---@type string[]
|
|
||||||
local common_langs = { 'lua', 'python', 'javascript', 'typescript', 'rust', 'go', 'c', 'cpp' }
|
|
||||||
---@type string[]
|
|
||||||
local available = {}
|
|
||||||
---@type string[]
|
|
||||||
local missing = {}
|
|
||||||
|
|
||||||
for _, lang in ipairs(common_langs) do
|
|
||||||
local ok = pcall(vim.treesitter.language.inspect, lang)
|
|
||||||
if ok then
|
|
||||||
table.insert(available, lang)
|
|
||||||
else
|
|
||||||
table.insert(missing, lang)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue