module: add :tools tree-sitter

This module installs 'tree-sitter' and 'tree-sitter-langs' as well as
the 'evil-textobj-treesitter' and configures them.

This module is based on the prototype module that @hlissner has started
and I am just fleshing out that work.

It also comes with a README file

Fix: #4151
This commit is contained in:
Jeetaditya Chatterjee 2021-08-21 21:19:27 +01:00
parent 8a27eb99be
commit 862e7980d8
No known key found for this signature in database
GPG key ID: 09D54CECD2132B91
4 changed files with 152 additions and 0 deletions

View file

@ -0,0 +1,52 @@
// this is a test file i am useing to test functionallity with treesitter
// blocks
x = 10
// calls
call();
// class
class Car {
constructor(name, year) {
this.name = name;
this.year = year;
}
age(x) {
return x - this.year;
}
}
// comments
/*
* multiline my dude
* a poem
* roses are red
* violets are blue
* there is a man behind you
* and he had an axe with him to
*/
// conditional
if (x == 1) {
doStuff();
} else {
x = new Car.age(2020)
}
// function
function name(arg) {
doStuff(arg);
}
const arrowFunc = arg => {
dosStuff(arg);
}
// loop
for (let i = 0; i <= 10; i++) {
doStuff(i);
}
// param