blob: 2af01093945c31c530743465cdc0db1d3960c024 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#!/usr/bin/evs -S nvim -l
local p = require("nvim-treesitter.parsers").get_parser_configs()
local sp = {}
for k,v in pairs(p) do
table.insert(sp, { n = k, p = v })
end
table.sort(sp, function(a,b)
return a.n < b.n
end)
local t = ""
for _,v in ipairs(sp) do
local l = v.n
if v.p.maintainers then
t = t
..
l
..
"\n"
end
end
f = io.open("langs.txt", "w")
f:write(t);
f:close()
vim.cmd "q"
|