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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
|
*lspconfig-all*
LSP configurations provided by nvim-lspconfig are listed below.
Type |gO| to see the table of contents.
==============================================================================
LSP configs
------------------------------------------------------------------------------
ada_ls
https://github.com/AdaCore/ada_language_server
Installation instructions can be found [here](https://github.com/AdaCore/ada_language_server#Install).
Workspace-specific [settings](https://github.com/AdaCore/ada_language_server/blob/master/doc/settings.md) such as `projectFile` can be provided in a `.als.json` file at the root of the workspace.
Alternatively, configuration may be passed as a "settings" object to `vim.lsp.config('ada_ls', {})`:
>lua
vim.lsp.config('ada_ls', {
settings = {
ada = {
projectFile = "project.gpr";
scenarioVariables = { ... };
}
}
})
Snippet to enable the language server: >lua
vim.lsp.enable('ada_ls')
Default config:
- cmd: >lua
{ "ada_language_server" }
- filetypes: >lua
{ "ada" }
- root_dir (use "gF" to view): ../lsp/ada_ls.lua:24
<
------------------------------------------------------------------------------
agda_ls
https://github.com/agda/agda-language-server
Language Server for Agda.
Snippet to enable the language server: >lua
vim.lsp.enable('agda_ls')
Default config:
- cmd: >lua
{ "als" }
- filetypes: >lua
{ "agda" }
- root_dir (use "gF" to view): ../lsp/agda_ls.lua:10
<
------------------------------------------------------------------------------
aiken
https://github.com/aiken-lang/aiken
A language server for Aiken Programming Language.
[Installation](https://aiken-lang.org/installation-instructions)
It can be i
Snippet to enable the language server: >lua
vim.lsp.enable('aiken')
Default config:
- cmd: >lua
{ "aiken", "lsp" }
- filetypes: >lua
{ "aiken" }
- root_markers: >lua
{ "aiken.toml", ".git" }
<
------------------------------------------------------------------------------
air
https://github.com/posit-dev/air
Air is an R formatter and language server, written in Rust.
Refer to the [documentation](https://posit-dev.github.io/air/editors.html) for more details.
Snippet to enable the language server: >lua
vim.lsp.enable('air')
Default config:
- cmd: >lua
{ "air", "language-server" }
- filetypes: >lua
{ "r" }
- root_markers: >lua
{ "air.toml", ".air.toml", ".git" }
<
------------------------------------------------------------------------------
alloy_ls
https://github.com/AlloyTools/org.alloytools.alloy
Alloy is a formal specification language for describing structures and a tool for exploring them.
You may also need to configure the filetype for Alloy (*.als) files:
>
autocmd BufNewFile,BufRead *.als set filetype=alloy
or
>lua
vim.filetype.add({
pattern = {
['.*/*.als'] = 'alloy',
},
})
Alternatively, you may use a syntax plugin like https://github.com/runoshun/vim-alloy.
Snippet to enable the language server: >lua
vim.lsp.enable('alloy_ls')
Default config:
- cmd: >lua
{ "alloy", "lsp" }
- filetypes: >lua
{ "alloy" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
anakin_language_server
https://pypi.org/project/anakin-language-server/
`anakin-language-server` is yet another Jedi Python language server.
Available options:
* Initialization: https://github.com/muffinmad/anakin-language-server#initialization-option
* Configuration: https://github.com/muffinmad/anakin-language-server#configuration-options
Snippet to enable the language server: >lua
vim.lsp.enable('anakin_language_server')
Default config:
- cmd: >lua
{ "anakinls" }
- filetypes: >lua
{ "python" }
- root_markers: >lua
{ "pyproject.toml", "setup.py", "setup.cfg", "requirements.txt", "Pipfile", ".git" }
- settings: >lua
{
anakinls = {
pyflakes_errors = { "ImportStarNotPermitted", "UndefinedExport", "UndefinedLocal", "UndefinedName", "DuplicateArgument", "MultiValueRepeatedKeyLiteral", "MultiValueRepeatedKeyVariable", "FutureFeatureNotDefined", "LateFutureImport", "ReturnOutsideFunction", "YieldOutsideFunction", "ContinueOutsideLoop", "BreakOutsideLoop", "TwoStarredExpressions", "TooManyExpressionsInStarredAssignment", "ForwardAnnotationSyntaxError", "RaiseNotImplemented", "StringDotFormatExtraPositionalArguments", "StringDotFormatExtraNamedArguments", "StringDotFormatMissingArgument", "StringDotFormatMixingAutomatic", "StringDotFormatInvalidFormat", "PercentFormatInvalidFormat", "PercentFormatMixedPositionalAndNamed", "PercentFormatUnsupportedFormat", "PercentFormatPositionalCountMismatch", "PercentFormatExtraNamedArguments", "PercentFormatMissingArgument", "PercentFormatExpectedMapping", "PercentFormatExpectedSequence", "PercentFormatStarRequiresSequence" }
}
}
<
------------------------------------------------------------------------------
angularls
https://github.com/angular/vscode-ng-language-service
`angular-language-server` can be installed via npm `npm install -g @angular/language-server`.
>lua
local project_library_path = "/path/to/project/lib"
local cmd = {"ngserver", "--stdio", "--tsProbeLocations", project_library_path , "--ngProbeLocations", project_library_path}
vim.lsp.config('angularls', {
cmd = cmd,
})
Snippet to enable the language server: >lua
vim.lsp.enable('angularls')
Default config:
- cmd (use "gF" to view): ../lsp/angularls.lua:93
- filetypes: >lua
{ "typescript", "html", "typescriptreact", "typescript.tsx", "htmlangular" }
- root_markers: >lua
{ "angular.json", "nx.json" }
<
------------------------------------------------------------------------------
ansiblels
https://github.com/ansible/vscode-ansible
Language server for the ansible configuration management tool.
`ansible-language-server` can be installed via `npm`:
>sh
npm install -g @ansible/ansible-language-server
Snippet to enable the language server: >lua
vim.lsp.enable('ansiblels')
Default config:
- cmd: >lua
{ "ansible-language-server", "--stdio" }
- filetypes: >lua
{ "yaml.ansible" }
- root_markers: >lua
{ "ansible.cfg", ".ansible-lint" }
- settings: >lua
{
ansible = {
ansible = {
path = "ansible"
},
executionEnvironment = {
enabled = false
},
python = {
interpreterPath = "python"
},
validation = {
enabled = true,
lint = {
enabled = true,
path = "ansible-lint"
}
}
}
}
<
------------------------------------------------------------------------------
antlersls
https://www.npmjs.com/package/antlers-language-server
`antlersls` can be installed via `npm` >sh
npm install -g antlers-language-server
Snippet to enable the language server: >lua
vim.lsp.enable('antlersls')
Default config:
- cmd: >lua
{ "antlersls", "--stdio" }
- filetypes: >lua
{ "html", "antlers" }
- root_markers: >lua
{ "composer.json" }
<
------------------------------------------------------------------------------
apex_ls
https://github.com/forcedotcom/salesforcedx-vscode
Language server for Apex.
For manual installation, download the JAR file from the [VSCode
extension](https://github.com/forcedotcom/salesforcedx-vscode/tree/develop/packages/salesforcedx-vscode-apex) and adjust the `apex_jar_path` appropriately.
```lua
vim.lsp.config('apex_ls', {
apex_jar_path = '/path/to/apex-jorje-lsp.jar',
apex_enable_semantic_errors = false, -- Whether to allow Apex Language Server to surface semantic errors
apex_enable_completion_statistics = false, -- Whether to allow Apex Language Server to collect telemetry on code completion usage
}
```
Example configuration using Mason:
>lua
vim.lsp.config('apex_ls', {
apex_jar_path = vim.fn.stdpath('data') .. '/mason/share/apex-language-server/apex-jorje-lsp.jar',
}
For a complete experience, you may need to ensure the treesitter parsers for 'apex' are installed (:TSInstall apex) as well as configure the filetype for apex (*.cls) files:
```lua
vim.filetype.add({
pattern = {
['.*/*.cls'] = 'apex',
},
})
```
Snippet to enable the language server: >lua
vim.lsp.enable('apex_ls')
Default config:
- cmd (use "gF" to view): ../lsp/apex_ls.lua:37
- filetypes: >lua
{ "apex", "apexcode" }
- root_markers: >lua
{ "sfdx-project.json" }
<
------------------------------------------------------------------------------
arduino_language_server
https://github.com/arduino/arduino-language-server
Language server for Arduino
The `arduino-language-server` can be installed by running:
>
go install github.com/arduino/arduino-language-server@latest
The `arduino-cli` tool must also be installed. Follow [these
installation instructions](https://arduino.github.io/arduino-cli/latest/installation/) for
your platform.
After installing `arduino-cli`, follow [these
instructions](https://arduino.github.io/arduino-cli/latest/getting-started/#create-a-configuration-file)
for generating a configuration file if you haven't done so already, and make
sure you [install any relevant platforms
libraries](https://arduino.github.io/arduino-cli/latest/getting-started/#install-the-core-for-your-board).
The language server also requires `clangd` to be installed. Follow [these
installation instructions](https://clangd.llvm.org/installation) for your
platform.
If you don't have a sketch yet create one.
>sh
$ arduino-cli sketch new test
$ cd test
You will need a `sketch.yaml` file in order for the language server to understand your project. It will also save you passing options to `arduino-cli` each time you compile or upload a file. You can generate the file by using the following commands.
First gather some information about your board. Make sure your board is connected and run the following:
>sh
$ arduino-cli board list
Port Protocol Type Board Name FQBN Core
/dev/ttyACM0 serial Serial Port (USB) Arduino Uno arduino:avr:uno arduino:avr
Then generate the file:
>sh
arduino-cli board attach -p /dev/ttyACM0 -b arduino:avr:uno test.ino
The resulting file should look like this:
>yaml
default_fqbn: arduino:avr:uno
default_port: /dev/ttyACM0
Your folder structure should look like this:
>
.
├── test.ino
└── sketch.yaml
For further instructions about configuration options, run `arduino-language-server --help`.
Note that an upstream bug makes keywords in some cases become undefined by the language server.
Ref: https://github.com/arduino/arduino-ide/issues/159
Snippet to enable the language server: >lua
vim.lsp.enable('arduino_language_server')
Default config:
- capabilities: >lua
{
textDocument = {
semanticTokens = vim.NIL
},
workspace = {
semanticTokens = vim.NIL
}
}
- cmd: >lua
{ "arduino-language-server" }
- filetypes: >lua
{ "arduino" }
- root_dir (use "gF" to view): ../lsp/arduino_language_server.lua:74
<
------------------------------------------------------------------------------
asm_lsp
https://github.com/bergercookie/asm-lsp
Language Server for NASM/GAS/GO Assembly
`asm-lsp` can be installed via cargo:
cargo install asm-lsp
Snippet to enable the language server: >lua
vim.lsp.enable('asm_lsp')
Default config:
- cmd: >lua
{ "asm-lsp" }
- filetypes: >lua
{ "asm", "vmasm" }
- root_markers: >lua
{ ".asm-lsp.toml", ".git" }
<
------------------------------------------------------------------------------
ast_grep
https://ast-grep.github.io/
ast-grep(sg) is a fast and polyglot tool for code structural search, lint, rewriting at large scale.
ast-grep LSP only works in projects that have `sgconfig.y[a]ml` in their root directories >sh
npm install [-g] @ast-grep/cli
Snippet to enable the language server: >lua
vim.lsp.enable('ast_grep')
Default config:
- cmd: >lua
{ "ast-grep", "lsp" }
- filetypes: >lua
{ "bash", "c", "cpp", "csharp", "css", "elixir", "go", "haskell", "html", "java", "javascript", "javascriptreact", "javascript.jsx", "json", "kotlin", "lua", "nix", "php", "python", "ruby", "rust", "scala", "solidity", "swift", "typescript", "typescriptreact", "typescript.tsx", "yaml" }
- reuse_client (use "gF" to view): ../lsp/ast_grep.lua:12
- root_markers: >lua
{ "sgconfig.yaml", "sgconfig.yml" }
- `workspace_required` : `true`
<
------------------------------------------------------------------------------
astro
https://github.com/withastro/language-tools/tree/main/packages/language-server
`astro-ls` can be installed via `npm` >sh
npm install -g @astrojs/language-server
Snippet to enable the language server: >lua
vim.lsp.enable('astro')
Default config:
- before_init (use "gF" to view): ../lsp/astro.lua:13
- cmd: >lua
{ "astro-ls", "--stdio" }
- filetypes: >lua
{ "astro" }
- init_options: >lua
{
typescript = {}
}
- root_markers: >lua
{ "package.json", "tsconfig.json", "jsconfig.json", ".git" }
<
------------------------------------------------------------------------------
atlas
https://github.com/ariga/atlas
Language server for Atlas config and schema files.
You may also need to configure the filetype for *.hcl files:
>vim
autocmd BufNewFile,BufRead atlas.hcl set filetype=atlas-config
autocmd BufNewFile,BufRead *.my.hcl set filetype=atlas-schema-mysql
autocmd BufNewFile,BufRead *.pg.hcl set filetype=atlas-schema-postgresql
autocmd BufNewFile,BufRead *.lt.hcl set filetype=atlas-schema-sqlite
autocmd BufNewFile,BufRead *.ch.hcl set filetype=atlas-schema-clickhouse
autocmd BufNewFile,BufRead *.ms.hcl set filetype=atlas-schema-mssql
autocmd BufNewFile,BufRead *.rs.hcl set filetype=atlas-schema-redshift
autocmd BufNewFile,BufRead *.test.hcl set filetype=atlas-test
autocmd BufNewFile,BufRead *.plan.hcl set filetype=atlas-plan
autocmd BufNewFile,BufRead *.rule.hcl set filetype=atlas-rule
or
>lua
vim.filetype.add({
filename = {
['atlas.hcl'] = 'atlas-config',
},
pattern = {
['.*/*.my.hcl'] = 'atlas-schema-mysql',
['.*/*.pg.hcl'] = 'atlas-schema-postgresql',
['.*/*.lt.hcl'] = 'atlas-schema-sqlite',
['.*/*.ch.hcl'] = 'atlas-schema-clickhouse',
['.*/*.ms.hcl'] = 'atlas-schema-mssql',
['.*/*.rs.hcl'] = 'atlas-schema-redshift',
['.*/*.test.hcl'] = 'atlas-test',
['.*/*.plan.hcl'] = 'atlas-plan',
['.*/*.rule.hcl'] = 'atlas-rule',
},
})
Optionally, tell treesitter to treat Atlas filetypes as HCL for better syntax highlighting:
>lua
vim.treesitter.language.register('hcl', 'atlas-config')
vim.treesitter.language.register('hcl', 'atlas-schema-mysql')
vim.treesitter.language.register('hcl', 'atlas-schema-postgresql')
vim.treesitter.language.register('hcl', 'atlas-schema-sqlite')
vim.treesitter.language.register('hcl', 'atlas-schema-clickhouse')
vim.treesitter.language.register('hcl', 'atlas-schema-mssql')
vim.treesitter.language.register('hcl', 'atlas-schema-redshift')
vim.treesitter.language.register('hcl', 'atlas-test')
vim.treesitter.language.register('hcl', 'atlas-plan')
vim.treesitter.language.register('hcl', 'atlas-rule')
Snippet to enable the language server: >lua
vim.lsp.enable('atlas')
Default config:
- cmd: >lua
{ "atlas", "tool", "lsp", "--stdio" }
- filetypes: >lua
{ "atlas-*" }
- root_markers: >lua
{ "atlas.hcl" }
<
------------------------------------------------------------------------------
atopile
https://atopile.io/
A language server for atopile Programming Language.
It comes with the atopile compiler, for installation see: [Installing atopile](https://docs.atopile.io/atopile/guides/install)
Snippet to enable the language server: >lua
vim.lsp.enable('atopile')
Default config:
- cmd: >lua
{ "ato", "lsp", "start" }
- filetypes: >lua
{ "ato" }
- root_markers: >lua
{ "ato.yaml", ".ato", ".git" }
<
------------------------------------------------------------------------------
autohotkey_lsp
https://github.com/thqby/vscode-autohotkey2-lsp
AutoHotkey v2.0 LSP implementation
NOTE: AutoHotkey is Windows-only.
Snippet to enable the language server: >lua
vim.lsp.enable('autohotkey_lsp')
Default config:
- cmd: >lua
{ "autohotkey_lsp", "--stdio" }
- filetypes: >lua
{ "autohotkey" }
- flags: >lua
{
debounce_text_changes = 500
}
- init_options: >lua
{
ActionWhenV1IsDetected = "Continue",
AutoLibInclude = "All",
CommentTags = "^;;\\s*(?<tag>.+)",
CompleteFunctionParens = false,
Diagnostics = {
ClassStaticMemberCheck = true,
ParamsCheck = true
},
FormatOptions = {
array_style = "expand",
brace_style = "One True Brace",
break_chained_methods = false,
ignore_comment = false,
indent_string = "\t",
max_preserve_newlines = 2,
object_style = "none",
preserve_newlines = true,
space_after_double_colon = true,
space_before_conditional = true,
space_in_empty_paren = false,
space_in_other = true,
space_in_paren = false,
wrap_line_length = 0
},
InterpreterPath = "",
SymbolFoldinFromOpenBrace = false,
locale = "en-us"
}
- root_markers: >lua
{ "package.json" }
<
------------------------------------------------------------------------------
autotools_ls
https://github.com/Freed-Wu/autotools-language-server
`autotools-language-server` can be installed via `pip` >sh
pip install autotools-language-server
Language server for autoconf, automake and make using tree sitter in python.
Snippet to enable the language server: >lua
vim.lsp.enable('autotools_ls')
Default config:
- cmd: >lua
{ "autotools-language-server" }
- filetypes: >lua
{ "config", "automake", "make" }
- root_dir (use "gF" to view): ../lsp/autotools_ls.lua:17
<
------------------------------------------------------------------------------
awk_ls
https://github.com/Beaglefoot/awk-language-server/
`awk-language-server` can be installed via `npm` >sh
npm install -g awk-language-server
Snippet to enable the language server: >lua
vim.lsp.enable('awk_ls')
Default config:
- cmd: >lua
{ "awk-language-server" }
- filetypes: >lua
{ "awk" }
<
------------------------------------------------------------------------------
azure_pipelines_ls
https://github.com/microsoft/azure-pipelines-language-server
An Azure Pipelines language server
`azure-pipelines-ls` can be installed via `npm`:
>sh
npm install -g azure-pipelines-language-server
By default `azure-pipelines-ls` will only work in files named `azure-pipelines.yml`, this can be changed by providing additional settings like so >lua
vim.lsp.config('azure_pipelines_ls', {
... -- other configuration
settings = {
yaml = {
schemas = {
["https://raw.githubusercontent.com/microsoft/azure-pipelines-vscode/master/service-schema.json"] = {
"/azure-pipeline*.y*l",
"/*.azure*",
"Azure-Pipelines/**/*.y*l",
"Pipelines/*.y*l",
},
},
},
},
})
The Azure Pipelines LSP is a fork of `yaml-language-server` and as such the same settings can be passed to it as `yaml-language-server`.
Snippet to enable the language server: >lua
vim.lsp.enable('azure_pipelines_ls')
Default config:
- cmd: >lua
{ "azure-pipelines-language-server", "--stdio" }
- filetypes: >lua
{ "yaml" }
- root_markers: >lua
{ "azure-pipelines.yml" }
- settings: >lua
{}
<
------------------------------------------------------------------------------
bacon_ls
https://github.com/crisidev/bacon-ls
A Language Server Protocol wrapper for [bacon](https://dystroy.org/bacon/).
It offers textDocument/diagnostic and workspace/diagnostic capabilities for Rust
workspaces using the Bacon export locations file.
It requires `bacon` and `bacon-ls` to be installed on the system using
[mason.nvim](https://github.com/williamboman/mason.nvim) or manually
>sh
$ cargo install --locked bacon bacon-ls
Settings can be changed using the `init_options` dictionary:util
>lua
init_options = {
-- Bacon export filename (default: .bacon-locations).
locationsFile = ".bacon-locations",
-- Try to update diagnostics every time the file is saved (default: true).
updateOnSave = true,
-- How many milliseconds to wait before updating diagnostics after a save (default: 1000).
updateOnSaveWaitMillis = 1000,
-- Try to update diagnostics every time the file changes (default: true).
updateOnChange = true,
-- Try to validate that bacon preferences are setup correctly to work with bacon-ls (default: true).
validateBaconPreferences = true,
-- f no bacon preferences file is found, create a new preferences file with the bacon-ls job definition (default: true).
createBaconPreferencesFile = true,
-- Run bacon in background for the bacon-ls job (default: true)
runBaconInBackground = true,
-- Command line arguments to pass to bacon running in background (default "--headless -j bacon-ls")
runBaconInBackgroundCommandArguments = "--headless -j bacon-ls",
-- How many milliseconds to wait between background diagnostics check to synchronize all open files (default: 2000).
synchronizeAllOpenFilesWaitMillis = 2000,
}
Snippet to enable the language server: >lua
vim.lsp.enable('bacon_ls')
Default config:
- cmd: >lua
{ "bacon-ls" }
- filetypes: >lua
{ "rust" }
- init_options: >lua
{}
- root_markers: >lua
{ ".bacon-locations", "Cargo.toml" }
<
------------------------------------------------------------------------------
ballerina
Ballerina language server
The Ballerina language's CLI tool comes with its own language server implementation.
The `bal` command line tool must be installed and available in your system's PATH.
Snippet to enable the language server: >lua
vim.lsp.enable('ballerina')
Default config:
- cmd: >lua
{ "bal", "start-language-server" }
- filetypes: >lua
{ "ballerina" }
- root_markers: >lua
{ "Ballerina.toml" }
<
------------------------------------------------------------------------------
basedpyright
https://detachhead.github.io/basedpyright
`basedpyright`, a static type checker and language server for python
Snippet to enable the language server: >lua
vim.lsp.enable('basedpyright')
Default config:
- cmd: >lua
{ "basedpyright-langserver", "--stdio" }
- filetypes: >lua
{ "python" }
- on_attach (use "gF" to view): ../lsp/basedpyright.lua:25
- root_markers: >lua
{ "pyrightconfig.json", "pyproject.toml", "setup.py", "setup.cfg", "requirements.txt", "Pipfile", ".git" }
- settings: >lua
{
basedpyright = {
analysis = {
autoSearchPaths = true,
diagnosticMode = "openFilesOnly",
useLibraryCodeForTypes = true
}
}
}
<
------------------------------------------------------------------------------
bashls
https://github.com/bash-lsp/bash-language-server
`bash-language-server` can be installed via `npm` >sh
npm i -g bash-language-server
Language server for bash, written using tree sitter in typescript.
Snippet to enable the language server: >lua
vim.lsp.enable('bashls')
Default config:
- cmd: >lua
{ "bash-language-server", "start" }
- filetypes: >lua
{ "bash", "sh" }
- root_markers: >lua
{ ".git" }
- settings: >lua
{
bashIde = {
globPattern = "*@(.sh|.inc|.bash|.command)"
}
}
<
------------------------------------------------------------------------------
basics_ls
https://github.com/antonk52/basics-language-server/
Buffer, path, and snippet completion
>sh
npm install -g basics-language-server
Snippet to enable the language server: >lua
vim.lsp.enable('basics_ls')
Default config:
- cmd: >lua
{ "basics-language-server" }
- settings: >lua
{
buffer = {
enable = true,
minCompletionLength = 4
},
path = {
enable = true
},
snippet = {
enable = false,
sources = {}
}
}
<
------------------------------------------------------------------------------
bazelrc_lsp
https://github.com/salesforce-misc/bazelrc-lsp
`bazelrc-lsp` is a LSP for `.bazelrc` configuration files.
The `.bazelrc` file type is not detected automatically, you can register it manually (see below) or override the filetypes:
>lua
vim.filetype.add {
pattern = {
['.*.bazelrc'] = 'bazelrc',
},
}
Snippet to enable the language server: >lua
vim.lsp.enable('bazelrc_lsp')
Default config:
- cmd: >lua
{ "bazelrc-lsp", "lsp" }
- filetypes: >lua
{ "bazelrc" }
- root_markers: >lua
{ "WORKSPACE", "WORKSPACE.bazel", "MODULE.bazel" }
<
------------------------------------------------------------------------------
beancount
https://github.com/polarmutex/beancount-language-server#installation
See https://github.com/polarmutex/beancount-language-server#configuration for configuration options
Snippet to enable the language server: >lua
vim.lsp.enable('beancount')
Default config:
- cmd: >lua
{ "beancount-language-server", "--stdio" }
- filetypes: >lua
{ "beancount", "bean" }
- init_options: >lua
{}
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
bicep
https://github.com/azure/bicep
Bicep language server
Bicep language server can be installed by downloading and extracting a release of bicep-langserver.zip from [Bicep GitHub releases](https://github.com/Azure/bicep/releases).
Bicep language server requires the [dotnet-sdk](https://dotnet.microsoft.com/download) to be installed.
Neovim does not have built-in support for the bicep filetype which is required for lspconfig to automatically launch the language server.
Filetype detection can be added via an autocmd >lua
vim.cmd [[ autocmd BufNewFile,BufRead *.bicep set filetype=bicep ]]
**By default, bicep language server does not have a `cmd` set.** This is because nvim-lspconfig does not make assumptions about your path. You must add the following to your init.vim or init.lua to set `cmd` to the absolute path ($HOME and ~ are not expanded) of the unzipped run script or binary.
>lua
local bicep_lsp_bin = "/path/to/bicep-langserver/Bicep.LangServer.dll"
vim.lsp.config('bicep', {
cmd = { "dotnet", bicep_lsp_bin };
...
})
To download the latest release and place in /usr/local/bin/bicep-langserver >bash
(cd $(mktemp -d) \
&& curl -fLO https://github.com/Azure/bicep/releases/latest/download/bicep-langserver.zip \
&& rm -rf /usr/local/bin/bicep-langserver \
&& unzip -d /usr/local/bin/bicep-langserver bicep-langserver.zip)
Snippet to enable the language server: >lua
vim.lsp.enable('bicep')
Default config:
- filetypes: >lua
{ "bicep", "bicep-params" }
- init_options: >lua
{}
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
biome
https://biomejs.dev
Toolchain of the web. [Successor of Rome](https://biomejs.dev/blog/annoucing-biome).
>sh
npm install [-g] @biomejs/biome
### Monorepo support
`biome` supports monorepos by default. It will automatically find the `biome.json` corresponding to the package you are working on, as described in the [documentation](https://biomejs.dev/guides/big-projects/#monorepo). This works without the need of spawning multiple instances of `biome`, saving memory.
Snippet to enable the language server: >lua
vim.lsp.enable('biome')
Default config:
- cmd (use "gF" to view): ../lsp/biome.lua:17
- filetypes: >lua
{ "astro", "css", "graphql", "html", "javascript", "javascriptreact", "json", "jsonc", "svelte", "typescript", "typescript.tsx", "typescriptreact", "vue" }
- root_dir (use "gF" to view): ../lsp/biome.lua:17
- `workspace_required` : `true`
<
------------------------------------------------------------------------------
bitbake_language_server
https://github.com/Freed-Wu/bitbake-language-server
`bitbake-language-server` can be installed via `pip` >sh
pip install bitbake-language-server
Language server for bitbake.
Snippet to enable the language server: >lua
vim.lsp.enable('bitbake_language_server')
Default config:
- cmd: >lua
{ "bitbake-language-server" }
- filetypes: >lua
{ "bitbake" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
blueprint_ls
https://gitlab.gnome.org/jwestman/blueprint-compiler
`blueprint-compiler` can be installed via your system package manager.
Language server for the blueprint markup language, written in python and part
of the blueprint-compiler.
Snippet to enable the language server: >lua
vim.lsp.enable('blueprint_ls')
Default config:
- cmd: >lua
{ "blueprint-compiler", "lsp" }
- cmd_env: >lua
{
GLOB_PATTERN = "*@(.blp)"
}
- filetypes: >lua
{ "blueprint" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
bqls
https://github.com/kitagry/bqls
The `bqls` BigQuery language server can be installed by running:
>sh
$ go install github.com/kitagry/bqls@latest
Snippet to enable the language server: >lua
vim.lsp.enable('bqls')
Default config:
- cmd: >lua
{ "bqls" }
- filetypes: >lua
{ "sql" }
- root_markers: >lua
{ ".git" }
- settings: >lua
{}
<
------------------------------------------------------------------------------
bright_script
https://github.com/RokuCommunity/brighterscript
`brightscript` can be installed via `npm` >sh
npm install -g brighterscript
Snippet to enable the language server: >lua
vim.lsp.enable('bright_script')
Default config:
- cmd: >lua
{ "bsc", "--lsp", "--stdio" }
- filetypes: >lua
{ "brs" }
- root_markers: >lua
{ "makefile", "Makefile", ".git" }
<
------------------------------------------------------------------------------
brioche
https://github.com/brioche-dev/brioche
`Brioche Language Server`.
Snippet to enable the language server: >lua
vim.lsp.enable('brioche')
Default config:
- cmd: >lua
{ "brioche", "lsp" }
- filetypes: >lua
{ "brioche" }
- root_markers: >lua
{ "project.bri" }
<
------------------------------------------------------------------------------
bsl_ls
https://github.com/1c-syntax/bsl-language-server
Language Server Protocol implementation for 1C (BSL) - 1C:Enterprise 8 and OneScript languages.
Snippet to enable the language server: >lua
vim.lsp.enable('bsl_ls')
Default config:
- filetypes: >lua
{ "bsl", "os" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
buck2
https://github.com/facebook/buck2
Build system, successor to Buck
To better detect Buck2 project files, the following can be added:
>
vim.cmd [[ autocmd BufRead,BufNewFile *.bxl,BUCK,TARGETS set filetype=bzl ]]
Snippet to enable the language server: >lua
vim.lsp.enable('buck2')
Default config:
- cmd: >lua
{ "buck2", "lsp" }
- filetypes: >lua
{ "bzl" }
- root_markers: >lua
{ ".buckconfig" }
<
------------------------------------------------------------------------------
buddy_ls
https://github.com/buddy-compiler/buddy-mlir#buddy-lsp-server
The Language Server for the buddy-mlir, a drop-in replacement for mlir-lsp-server,
supporting new dialects defined in buddy-mlir.
`buddy-lsp-server` can be installed at the buddy-mlir repository (buddy-compiler/buddy-mlir)
Snippet to enable the language server: >lua
vim.lsp.enable('buddy_ls')
Default config:
- cmd: >lua
{ "buddy-lsp-server" }
- filetypes: >lua
{ "mlir" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
buf_ls
https://github.com/bufbuild/buf
buf beta lsp included in the cli itself
buf beta lsp is a Protobuf language server compatible with Buf modules and workspaces
Snippet to enable the language server: >lua
vim.lsp.enable('buf_ls')
Default config:
- cmd: >lua
{ "buf", "lsp", "serve", "--timeout=0", "--log-format=text" }
- filetypes: >lua
{ "proto" }
- reuse_client (use "gF" to view): ../lsp/buf_ls.lua:9
- root_markers: >lua
{ "buf.yaml", ".git" }
<
------------------------------------------------------------------------------
bzl
https://bzl.io/
https://docs.stack.build/docs/cli/installation
https://docs.stack.build/docs/vscode/starlark-language-server
Snippet to enable the language server: >lua
vim.lsp.enable('bzl')
Default config:
- cmd: >lua
{ "bzl", "lsp", "serve" }
- filetypes: >lua
{ "bzl" }
- root_markers: >lua
{ "WORKSPACE", "WORKSPACE.bazel" }
<
------------------------------------------------------------------------------
c3_lsp
https://github.com/pherrymason/c3-lsp
Language Server for c3.
Snippet to enable the language server: >lua
vim.lsp.enable('c3_lsp')
Default config:
- cmd: >lua
{ "c3lsp" }
- filetypes: >lua
{ "c3", "c3i" }
- root_markers: >lua
{ "project.json", "manifest.json", ".git" }
<
------------------------------------------------------------------------------
cairo_ls
[Cairo Language Server](https://github.com/starkware-libs/cairo/tree/main/crates/cairo-lang-language-server)
First, install Cairo following [this tutorial](https://book.cairo-lang.org/ch01-01-installation.html)
Then enable Cairo Language Server in your Lua configuration >lua
vim.lsp.enable('cairo_ls')
*cairo-language-server is still under active development, some features might not work yet !*
Snippet to enable the language server: >lua
vim.lsp.enable('cairo_ls')
Default config:
- cmd: >lua
{ "scarb", "cairo-language-server", "/C", "--node-ipc" }
- filetypes: >lua
{ "cairo" }
- init_options: >lua
{
hostInfo = "neovim"
}
- root_markers: >lua
{ "Scarb.toml", "cairo_project.toml", ".git" }
<
------------------------------------------------------------------------------
ccls
https://github.com/MaskRay/ccls/wiki
ccls relies on a [JSON compilation database](https://clang.llvm.org/docs/JSONCompilationDatabase.html) specified
as compile_commands.json or, for simpler projects, a .ccls.
For details on how to automatically generate one using CMake look [here](https://cmake.org/cmake/help/latest/variable/CMAKE_EXPORT_COMPILE_COMMANDS.html). Alternatively, you can use [Bear](https://github.com/rizsotto/Bear).
Customization options are passed to ccls at initialization time via init_options, a list of available options can be found [here](https://github.com/MaskRay/ccls/wiki/Customization#initialization-options). For example:
>lua
vim.lsp.config("ccls", {
init_options = {
compilationDatabaseDirectory = "build";
index = {
threads = 0;
};
clang = {
excludeArgs = { "-frounding-math"} ;
};
}
})
Snippet to enable the language server: >lua
vim.lsp.enable('ccls')
Default config:
- cmd: >lua
{ "ccls" }
- filetypes: >lua
{ "c", "cpp", "objc", "objcpp", "cuda" }
- offset_encoding: >lua
"utf-32"
- on_attach (use "gF" to view): ../lsp/ccls.lua:41
- root_markers: >lua
{ "compile_commands.json", ".ccls", ".git" }
- `workspace_required` : `true`
<
------------------------------------------------------------------------------
cds_lsp
https://cap.cloud.sap/docs/
`cds-lsp` can be installed via `npm`:
>sh
npm i -g @sap/cds-lsp
Snippet to enable the language server: >lua
vim.lsp.enable('cds_lsp')
Default config:
- cmd: >lua
{ "cds-lsp", "--stdio" }
- filetypes: >lua
{ "cds" }
- root_markers: >lua
{ "package.json", "db", "srv" }
- settings: >lua
{
cds = {
validate = true
}
}
<
------------------------------------------------------------------------------
cir_lsp_server
https://llvm.github.io/clangir
The Language Server for the LLVM ClangIR language
`cir-lsp-server` can be installed at the llvm-project repository (https://github.com/llvm/llvm-project)
Snippet to enable the language server: >lua
vim.lsp.enable('cir_lsp_server')
Default config:
- cmd: >lua
{ "cir-lsp-server" }
- filetypes: >lua
{ "cir" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
circom-lsp
[Circom Language Server](https://github.com/rubydusa/circom-lsp)
`circom-lsp`, the language server for the Circom language.
Snippet to enable the language server: >lua
vim.lsp.enable('circom-lsp')
Default config:
- cmd: >lua
{ "circom-lsp" }
- filetypes: >lua
{ "circom" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
clangd
https://clangd.llvm.org/installation.html
- **NOTE:** Clang >= 11 is recommended! See [#23](https://github.com/neovim/nvim-lspconfig/issues/23).
- If `compile_commands.json` lives in a build directory, you should
symlink it to the root of your source tree.
```
ln -s /path/to/myproject/build/compile_commands.json /path/to/myproject/
```
- clangd relies on a [JSON compilation database](https://clang.llvm.org/docs/JSONCompilationDatabase.html)
specified as compile_commands.json, see https://clangd.llvm.org/installation#compile_commandsjson
Snippet to enable the language server: >lua
vim.lsp.enable('clangd')
Default config:
- capabilities: >lua
{
offsetEncoding = { "utf-8", "utf-16" },
textDocument = {
completion = {
editsNearCursor = true
}
}
}
- cmd: >lua
{ "clangd" }
- filetypes: >lua
{ "c", "cpp", "objc", "objcpp", "cuda" }
- on_attach (use "gF" to view): ../lsp/clangd.lua:65
- on_init (use "gF" to view): ../lsp/clangd.lua:65
- root_markers: >lua
{ ".clangd", ".clang-tidy", ".clang-format", "compile_commands.json", "compile_flags.txt", "configure.ac", ".git" }
<
------------------------------------------------------------------------------
clarinet
https://github.com/hirosystems/clarinet
Clarinet is the fastest way to build, test, and deploy smart contracts on the Stacks blockchain.
Snippet to enable the language server: >lua
vim.lsp.enable('clarinet')
Default config:
- cmd: >lua
{ "clarinet", "lsp" }
- filetypes: >lua
{ "clar", "clarity" }
- root_markers: >lua
{ "Clarinet.toml" }
<
------------------------------------------------------------------------------
clojure_lsp
https://github.com/clojure-lsp/clojure-lsp
Clojure Language Server
Snippet to enable the language server: >lua
vim.lsp.enable('clojure_lsp')
Default config:
- cmd: >lua
{ "clojure-lsp" }
- filetypes: >lua
{ "clojure", "edn" }
- root_markers: >lua
{ "project.clj", "deps.edn", "build.boot", "shadow-cljs.edn", ".git", "bb.edn" }
<
------------------------------------------------------------------------------
cmake
https://github.com/regen100/cmake-language-server
CMake LSP Implementation
Snippet to enable the language server: >lua
vim.lsp.enable('cmake')
Default config:
- cmd: >lua
{ "cmake-language-server" }
- filetypes: >lua
{ "cmake" }
- init_options: >lua
{
buildDirectory = "build"
}
- root_markers: >lua
{ "CMakePresets.json", "CTestConfig.cmake", ".git", "build", "cmake" }
<
------------------------------------------------------------------------------
cobol_ls
Cobol language support
Snippet to enable the language server: >lua
vim.lsp.enable('cobol_ls')
Default config:
- cmd: >lua
{ "cobol-language-support" }
- filetypes: >lua
{ "cobol" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
codebook
https://github.com/blopker/codebook
An unholy spell checker for code.
`codebook-lsp` can be installed by following the instructions [here](https://github.com/blopker/codebook/blob/main/README.md#installation).
The default `cmd` assumes that the `codebook-lsp` binary can be found in `$PATH`.
Snippet to enable the language server: >lua
vim.lsp.enable('codebook')
Default config:
- cmd: >lua
{ "codebook-lsp", "serve" }
- filetypes: >lua
{ "c", "css", "gitcommit", "go", "haskell", "html", "java", "javascript", "javascriptreact", "lua", "markdown", "php", "python", "ruby", "rust", "toml", "text", "typescript", "typescriptreact" }
- root_markers: >lua
{ ".git", "codebook.toml", ".codebook.toml" }
<
------------------------------------------------------------------------------
coffeesense
https://github.com/phil294/coffeesense
CoffeeSense Language Server
`coffeesense-language-server` can be installed via `npm` >sh
npm install -g coffeesense-language-server
Snippet to enable the language server: >lua
vim.lsp.enable('coffeesense')
Default config:
- cmd: >lua
{ "coffeesense-language-server", "--stdio" }
- filetypes: >lua
{ "coffee" }
- root_markers: >lua
{ "package.json" }
<
------------------------------------------------------------------------------
contextive
https://github.com/dev-cycles/contextive
Language Server for Contextive.
Contextive allows you to define terms in a central file and provides auto-completion suggestions and hover panels for these terms wherever they're used.
To install the language server, you need to download the appropriate [GitHub release asset](https://github.com/dev-cycles/contextive/releases/) for your operating system and architecture.
After the download unzip the Contextive.LanguageServer binary and copy the file into a folder that is included in your system's PATH.
Snippet to enable the language server: >lua
vim.lsp.enable('contextive')
Default config:
- cmd: >lua
{ "Contextive.LanguageServer" }
- root_markers: >lua
{ ".contextive", ".git" }
<
------------------------------------------------------------------------------
copilot
https://www.npmjs.com/package/@github/copilot-language-server
The Copilot Language Server enables any editor or IDE
to integrate with GitHub Copilot via
[the language server protocol](https://microsoft.github.io/language-server-protocol/).
**[GitHub Copilot](https://github.com/features/copilot)**
is an AI pair programmer tool that helps you write code faster and smarter.
**Sign up for [GitHub Copilot Free](https://github.com/settings/copilot)!**
Please see [terms of use for GitHub Copilot](https://docs.github.com/en/site-policy/github-terms/github-terms-for-additional-products-and-features#github-copilot)
You need to enable `:help lsp-inline-completion` to receive suggestions. For example, you can enable it in the LspAttach event:
>lua
vim.api.nvim_create_autocmd('LspAttach', {
callback = function(args)
local bufnr = args.buf
local client = assert(vim.lsp.get_client_by_id(args.data.client_id))
if client:supports_method(vim.lsp.protocol.Methods.textDocument_inlineCompletion, bufnr) then
vim.lsp.inline_completion.enable(true, { bufnr = bufnr })
vim.keymap.set(
'i',
'<C-F>',
vim.lsp.inline_completion.get,
{ desc = 'LSP: accept inline completion', buffer = bufnr }
)
vim.keymap.set(
'i',
'<C-G>',
vim.lsp.inline_completion.select,
{ desc = 'LSP: switch inline completion', buffer = bufnr }
)
end
end
})
Snippet to enable the language server: >lua
vim.lsp.enable('copilot')
Default config:
- cmd: >lua
{ "copilot-language-server", "--stdio" }
- init_options: >lua
{
editorInfo = {
name = "Neovim",
version = "0.12.0-dev+gc2e0fd1c35"
},
editorPluginInfo = {
name = "Neovim",
version = "0.12.0-dev+gc2e0fd1c35"
}
}
- on_attach (use "gF" to view): ../lsp/copilot.lua:106
- root_markers: >lua
{ ".git" }
- settings: >lua
{
telemetry = {
telemetryLevel = "all"
}
}
<
------------------------------------------------------------------------------
coq_lsp
https://github.com/ejgallego/coq-lsp/
Snippet to enable the language server: >lua
vim.lsp.enable('coq_lsp')
Default config:
- cmd: >lua
{ "coq-lsp" }
- filetypes: >lua
{ "coq" }
- root_markers: >lua
{ "_CoqProject", ".git" }
<
------------------------------------------------------------------------------
crystalline
https://github.com/elbywan/crystalline
Crystal language server.
Snippet to enable the language server: >lua
vim.lsp.enable('crystalline')
Default config:
- cmd: >lua
{ "crystalline" }
- filetypes: >lua
{ "crystal" }
- root_markers: >lua
{ "shard.yml", ".git" }
<
------------------------------------------------------------------------------
csharp_ls
https://github.com/razzmatazz/csharp-language-server
Language Server for C#.
csharp-ls requires the [dotnet-sdk](https://dotnet.microsoft.com/download) to be installed.
The preferred way to install csharp-ls is with `dotnet tool install --global csharp-ls`.
Snippet to enable the language server: >lua
vim.lsp.enable('csharp_ls')
Default config:
- cmd (use "gF" to view): ../lsp/csharp_ls.lua:14
- filetypes: >lua
{ "cs" }
- init_options: >lua
{
AutomaticWorkspaceInit = true
}
- root_dir (use "gF" to view): ../lsp/csharp_ls.lua:14
<
------------------------------------------------------------------------------
cspell_ls
[cspell language server](https://github.com/vlabo/cspell-lsp)
Snippet to enable the language server: >lua
vim.lsp.enable('cspell_ls')
Default config:
- cmd: >lua
{ "cspell-lsp", "--stdio" }
- root_markers: >lua
{ ".git", "cspell.json", ".cspell.json", "cspell.json", ".cSpell.json", "cSpell.json", "cspell.config.js", "cspell.config.cjs", "cspell.config.json", "cspell.config.yaml", "cspell.config.yml", "cspell.yaml", "cspell.yml" }
<
------------------------------------------------------------------------------
css_variables
https://github.com/vunguyentuan/vscode-css-variables/tree/master/packages/css-variables-language-server
CSS variables autocompletion and go-to-definition
`css-variables-language-server` can be installed via `npm`:
>sh
npm i -g css-variables-language-server
Snippet to enable the language server: >lua
vim.lsp.enable('css_variables')
Default config:
- cmd: >lua
{ "css-variables-language-server", "--stdio" }
- filetypes: >lua
{ "css", "scss", "less" }
- root_dir (use "gF" to view): ../lsp/css_variables.lua:14
- settings: >lua
{
cssVariables = {
blacklistFolders = { "**/.cache", "**/.DS_Store", "**/.git", "**/.hg", "**/.next", "**/.svn", "**/bower_components", "**/CVS", "**/dist", "**/node_modules", "**/tests", "**/tmp" },
lookupFiles = { "**/*.less", "**/*.scss", "**/*.sass", "**/*.css" }
}
}
<
------------------------------------------------------------------------------
cssls
https://github.com/hrsh7th/vscode-langservers-extracted
`css-languageserver` can be installed via `npm`:
>sh
npm i -g vscode-langservers-extracted
Neovim does not currently include built-in snippets. `vscode-css-language-server` only provides completions when snippet support is enabled. To enable completion, install a snippet plugin and add the following override to your language client capabilities during setup.
>lua
--Enable (broadcasting) snippet capability for completion
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities.textDocument.completion.completionItem.snippetSupport = true
vim.lsp.config('cssls', {
capabilities = capabilities,
})
Snippet to enable the language server: >lua
vim.lsp.enable('cssls')
Default config:
- cmd: >lua
{ "vscode-css-language-server", "--stdio" }
- filetypes: >lua
{ "css", "scss", "less" }
- init_options: >lua
{
provideFormatter = true
}
- root_markers: >lua
{ "package.json", ".git" }
- settings: >lua
{
css = {
validate = true
},
less = {
validate = true
},
scss = {
validate = true
}
}
<
------------------------------------------------------------------------------
cssmodules_ls
https://github.com/antonk52/cssmodules-language-server
Language server for autocompletion and go-to-definition functionality for CSS modules.
You can install cssmodules-language-server via npm >sh
npm install -g cssmodules-language-server
Snippet to enable the language server: >lua
vim.lsp.enable('cssmodules_ls')
Default config:
- cmd: >lua
{ "cssmodules-language-server" }
- filetypes: >lua
{ "javascript", "javascriptreact", "typescript", "typescriptreact" }
- root_markers: >lua
{ "package.json" }
<
------------------------------------------------------------------------------
cucumber_language_server
https://cucumber.io
https://github.com/cucumber/common
https://www.npmjs.com/package/@cucumber/language-server
Language server for Cucumber.
`cucumber-language-server` can be installed via `npm` >sh
npm install -g @cucumber/language-server
Snippet to enable the language server: >lua
vim.lsp.enable('cucumber_language_server')
Default config:
- cmd: >lua
{ "cucumber-language-server", "--stdio" }
- filetypes: >lua
{ "cucumber" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
cue
https://github.com/cue-lang/cue
CUE makes it easy to validate data, write schemas, and ensure configurations align with policies.
Snippet to enable the language server: >lua
vim.lsp.enable('cue')
Default config:
- cmd: >lua
{ "cue", "lsp" }
- filetypes: >lua
{ "cue" }
- root_markers: >lua
{ "cue.mod", ".git" }
<
------------------------------------------------------------------------------
custom_elements_ls
https://github.com/Matsuuu/custom-elements-language-server
`custom-elements-languageserver` depends on `typescript`. Both packages can be installed via `npm` >sh
npm install -g typescript custom-elements-languageserver
To configure typescript language server, add a
[`tsconfig.json`](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html) or
[`jsconfig.json`](https://code.visualstudio.com/docs/languages/jsconfig) to the root of your
project.
Here's an example that disables type checking in JavaScript files >json
{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"checkJs": false
},
"exclude": [
"node_modules"
]
}
Snippet to enable the language server: >lua
vim.lsp.enable('custom_elements_ls')
Default config:
- cmd: >lua
{ "custom-elements-languageserver", "--stdio" }
- init_options: >lua
{
hostInfo = "neovim"
}
- root_markers: >lua
{ "tsconfig.json", "package.json", "jsconfig.json", ".git" }
<
------------------------------------------------------------------------------
cypher_ls
https://github.com/neo4j/cypher-language-support/tree/main/packages/language-server
`cypher-language-server`, language server for Cypher query language.
Part of the umbrella project cypher-language-support: https://github.com/neo4j/cypher-language-support
`cypher-language-server` can be installed via `npm` >sh
npm i -g @neo4j-cypher/language-server
Snippet to enable the language server: >lua
vim.lsp.enable('cypher_ls')
Default config:
- cmd: >lua
{ "cypher-language-server", "--stdio" }
- filetypes: >lua
{ "cypher" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
daedalus_ls
DaedalusLanguageServer
Snippet to enable the language server: >lua
vim.lsp.enable('daedalus_ls')
Default config:
- cmd: >lua
{ "DaedalusLanguageServer" }
- filetypes: >lua
{ "d" }
- root_markers: >lua
{ "Gothic.src", "Camera.src", "Menu.src", "Music.src", "ParticleFX.src", "SFX.src", "VisualFX.src" }
- settings: >lua
{
DaedalusLanguageServer = {
fileEncoding = "Windows-1252",
inlayHints = {
constants = true
},
loglevel = "debug",
numParserThreads = 16,
srcFileEncoding = "Windows-1252"
}
}
<
------------------------------------------------------------------------------
dafny
Support for the Dafny language server.
Snippet to enable the language server: >lua
vim.lsp.enable('dafny')
Default config:
- cmd: >lua
{ "dafny", "server" }
- filetypes: >lua
{ "dfy", "dafny" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
dagger
https://github.com/dagger/cuelsp
Dagger's lsp server for cuelang.
Snippet to enable the language server: >lua
vim.lsp.enable('dagger')
Default config:
- cmd: >lua
{ "cuelsp" }
- filetypes: >lua
{ "cue" }
- root_markers: >lua
{ "cue.mod", ".git" }
<
------------------------------------------------------------------------------
dartls
https://github.com/dart-lang/sdk/tree/master/pkg/analysis_server/tool/lsp_spec
Language server for dart.
Snippet to enable the language server: >lua
vim.lsp.enable('dartls')
Default config:
- cmd: >lua
{ "dart", "language-server", "--protocol=lsp" }
- filetypes: >lua
{ "dart" }
- init_options: >lua
{
closingLabels = true,
flutterOutline = true,
onlyAnalyzeProjectsWithOpenFiles = true,
outline = true,
suggestFromUnimportedLibraries = true
}
- root_markers: >lua
{ "pubspec.yaml" }
- settings: >lua
{
dart = {
completeFunctionCalls = true,
showTodos = true
}
}
<
------------------------------------------------------------------------------
dcmls
https://dcm.dev/
Language server for DCM analyzer.
Snippet to enable the language server: >lua
vim.lsp.enable('dcmls')
Default config:
- cmd: >lua
{ "dcm", "start-server", "--client=neovim" }
- filetypes: >lua
{ "dart" }
- root_markers: >lua
{ "pubspec.yaml" }
<
------------------------------------------------------------------------------
debputy
https://salsa.debian.org/debian/debputy
Language Server for Debian packages.
Snippet to enable the language server: >lua
vim.lsp.enable('debputy')
Default config:
- cmd: >lua
{ "debputy", "lsp", "server" }
- filetypes: >lua
{ "debcontrol", "debcopyright", "debchangelog", "autopkgtest", "make", "yaml" }
- root_markers: >lua
{ "debian" }
<
------------------------------------------------------------------------------
denols
https://github.com/denoland/deno
Deno's built-in language server
To appropriately highlight codefences returned from denols, you will need to augment vim.g.markdown_fenced languages
in your init.lua. Example:
>lua
vim.g.markdown_fenced_languages = {
"ts=typescript"
}
Snippet to enable the language server: >lua
vim.lsp.enable('denols')
Default config:
- cmd: >lua
{ "deno", "lsp" }
- cmd_env: >lua
{
NO_COLOR = true
}
- filetypes: >lua
{ "javascript", "javascriptreact", "javascript.jsx", "typescript", "typescriptreact", "typescript.tsx" }
- handlers: >lua
{
["textDocument/definition"] = <function 1>,
["textDocument/references"] = <function 1>,
["textDocument/typeDefinition"] = <function 1>
}
- on_attach (use "gF" to view): ../lsp/denols.lua:67
- root_dir (use "gF" to view): ../lsp/denols.lua:67
- settings: >lua
{
deno = {
enable = true,
suggest = {
imports = {
hosts = {
["https://deno.land"] = true
}
}
}
}
}
<
------------------------------------------------------------------------------
dhall_lsp_server
https://github.com/dhall-lang/dhall-haskell/tree/master/dhall-lsp-server
language server for dhall
`dhall-lsp-server` can be installed via cabal >sh
cabal install dhall-lsp-server
prebuilt binaries can be found [here](https://github.com/dhall-lang/dhall-haskell/releases).
Snippet to enable the language server: >lua
vim.lsp.enable('dhall_lsp_server')
Default config:
- cmd: >lua
{ "dhall-lsp-server" }
- filetypes: >lua
{ "dhall" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
diagnosticls
https://github.com/iamcco/diagnostic-languageserver
Diagnostic language server integrate with linters.
Snippet to enable the language server: >lua
vim.lsp.enable('diagnosticls')
Default config:
- cmd: >lua
{ "diagnostic-languageserver", "--stdio" }
- filetypes: >lua
{}
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
digestif
https://github.com/astoff/digestif
Digestif is a code analyzer, and a language server, for LaTeX, ConTeXt et caterva. It provides
context-sensitive completion, documentation, code navigation, and related functionality to any
text editor that speaks the LSP protocol.
Snippet to enable the language server: >lua
vim.lsp.enable('digestif')
Default config:
- cmd: >lua
{ "digestif" }
- filetypes: >lua
{ "tex", "plaintex", "context" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
djls
https://github.com/joshuadavidthomas/django-language-server
`djls`, a language server for the Django web framework.
Snippet to enable the language server: >lua
vim.lsp.enable('djls')
Default config:
- cmd: >lua
{ "djls", "serve" }
- filetypes: >lua
{ "htmldjango", "html", "python" }
- root_markers: >lua
{ "manage.py", "pyproject.toml", ".git" }
<
------------------------------------------------------------------------------
djlsp
https://github.com/fourdigits/django-template-lsp
`djlsp`, a language server for Django templates.
Snippet to enable the language server: >lua
vim.lsp.enable('djlsp')
Default config:
- cmd: >lua
{ "djlsp" }
- filetypes: >lua
{ "html", "htmldjango" }
- root_markers: >lua
{ ".git" }
- settings: >lua
{}
<
------------------------------------------------------------------------------
docker_compose_language_service
https://github.com/microsoft/compose-language-service
This project contains a language service for Docker Compose.
`compose-language-service` can be installed via `npm`:
>sh
npm install @microsoft/compose-language-service
Note: If the docker-compose-langserver doesn't startup when entering a `docker-compose.yaml` file, make sure that the filetype is `yaml.docker-compose`. You can set with: `:set filetype=yaml.docker-compose`.
Snippet to enable the language server: >lua
vim.lsp.enable('docker_compose_language_service')
Default config:
- cmd: >lua
{ "docker-compose-langserver", "--stdio" }
- filetypes: >lua
{ "yaml.docker-compose" }
- root_markers: >lua
{ "docker-compose.yaml", "docker-compose.yml", "compose.yaml", "compose.yml" }
<
------------------------------------------------------------------------------
docker_language_server
https://github.com/docker/docker-language-server
`docker-langserver-server` can be installed via `go` >sh
go install github.com/docker/docker-language-server/cmd/docker-language-server@latest
Snippet to enable the language server: >lua
vim.lsp.enable('docker_language_server')
Default config:
- cmd: >lua
{ "docker-language-server", "start", "--stdio" }
- filetypes: >lua
{ "dockerfile", "yaml.docker-compose" }
- get_language_id (use "gF" to view): ../lsp/docker_language_server.lua:11
- root_markers: >lua
{ "Dockerfile", "docker-compose.yaml", "docker-compose.yml", "compose.yaml", "compose.yml", "docker-bake.json", "docker-bake.hcl", "docker-bake.override.json", "docker-bake.override.hcl" }
<
------------------------------------------------------------------------------
dockerls
https://github.com/rcjsuen/dockerfile-language-server-nodejs
`docker-langserver` can be installed via `npm` >sh
npm install -g dockerfile-language-server-nodejs
Additional configuration can be applied in the following way >lua
vim.lsp.config('dockerls', {
settings = {
docker = {
languageserver = {
formatter = {
ignoreMultilineInstructions = true,
},
},
}
}
})
Snippet to enable the language server: >lua
vim.lsp.enable('dockerls')
Default config:
- cmd: >lua
{ "docker-langserver", "--stdio" }
- filetypes: >lua
{ "dockerfile" }
- root_markers: >lua
{ "Dockerfile" }
<
------------------------------------------------------------------------------
dolmenls
https://github.com/Gbury/dolmen/blob/master/doc/lsp.md
`dolmenls` can be installed via `opam >sh
opam install dolmen_lsp
Snippet to enable the language server: >lua
vim.lsp.enable('dolmenls')
Default config:
- cmd: >lua
{ "dolmenls" }
- filetypes: >lua
{ "smt2", "tptp", "p", "cnf", "icnf", "zf" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
dotls
https://github.com/nikeee/dot-language-server
`dot-language-server` can be installed via `npm` >sh
npm install -g dot-language-server
Snippet to enable the language server: >lua
vim.lsp.enable('dotls')
Default config:
- cmd: >lua
{ "dot-language-server", "--stdio" }
- filetypes: >lua
{ "dot" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
dprint
https://github.com/dprint/dprint
Pluggable and configurable code formatting platform written in Rust.
Snippet to enable the language server: >lua
vim.lsp.enable('dprint')
Default config:
- cmd: >lua
{ "dprint", "lsp" }
- filetypes: >lua
{ "javascript", "javascriptreact", "typescript", "typescriptreact", "json", "jsonc", "markdown", "python", "toml", "rust", "roslyn", "graphql" }
- root_markers: >lua
{ "dprint.json", ".dprint.json", "dprint.jsonc", ".dprint.jsonc" }
- settings: >lua
{}
<
------------------------------------------------------------------------------
ds_pinyin_lsp
https://github.com/iamcco/ds-pinyin-lsp
Dead simple Pinyin language server for input Chinese without IME(input method).
To install, download the latest [release](https://github.com/iamcco/ds-pinyin-lsp/releases) and ensure `ds-pinyin-lsp` is on your path.
And make ensure the database file `dict.db3` is also downloaded. And put the path to `dict.dbs` in the following code.
>lua
vim.lsp.config('ds_pinyin_lsp', {
init_options = {
db_path = "your_path_to_database"
}
})
Snippet to enable the language server: >lua
vim.lsp.enable('ds_pinyin_lsp')
Default config:
- cmd: >lua
{ "ds-pinyin-lsp" }
- filetypes: >lua
{ "markdown", "org" }
- init_options: >lua
{
completion_on = true,
match_as_same_as_input = true,
match_long_input = true,
max_suggest = 15,
show_symbols = true,
show_symbols_by_n_times = 0,
show_symbols_only_follow_by_hanzi = false
}
- on_attach (use "gF" to view): ../lsp/ds_pinyin_lsp.lua:48
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
dts_lsp
`dts-lsp` is an LSP for Devicetree files built on top of tree-sitter-devicetree grammar.
Language servers can be used in many editors, such as Visual Studio Code, Emacs
or Vim
Install `dts-lsp` from https://github.com/igor-prusov/dts-lsp and add it to path
`dts-lsp` doesn't require any configuration.
More about Devicetree:
https://www.devicetree.org/
https://docs.zephyrproject.org/latest/build/dts/index.html
Snippet to enable the language server: >lua
vim.lsp.enable('dts_lsp')
Default config:
- cmd: >lua
{ "dts-lsp" }
- filetypes: >lua
{ "dts", "dtsi", "overlay" }
- name: >lua
"dts_lsp"
- root_markers: >lua
{ ".git" }
- settings: >lua
{}
<
------------------------------------------------------------------------------
earthlyls
https://github.com/glehmann/earthlyls
A fast language server for earthly.
Snippet to enable the language server: >lua
vim.lsp.enable('earthlyls')
Default config:
- cmd: >lua
{ "earthlyls" }
- filetypes: >lua
{ "earthfile" }
- root_markers: >lua
{ "Earthfile" }
<
------------------------------------------------------------------------------
ecsact
https://github.com/ecsact-dev/ecsact_lsp_server
Language server for Ecsact.
The default cmd assumes `ecsact_lsp_server` is in your PATH. Typically from the
Ecsact SDK: https://ecsact.dev/start
Snippet to enable the language server: >lua
vim.lsp.enable('ecsact')
Default config:
- cmd: >lua
{ "ecsact_lsp_server", "--stdio" }
- filetypes: >lua
{ "ecsact" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
efm
https://github.com/mattn/efm-langserver
General purpose Language Server that can use specified error message format generated from specified command.
Requires at minimum EFM version [v0.0.38](https://github.com/mattn/efm-langserver/releases/tag/v0.0.38) to support
launching the language server on single files.
Note: In order for neovim's built-in language server client to send the appropriate `languageId` to EFM, **you must
specify `filetypes` in your call to `vim.lsp.config`**. Otherwise the server will be launch on the `BufEnter` instead
of the `FileType` autocommand, and the `filetype` variable used to populate the `languageId` will not yet be set.
>lua
vim.lsp.config('efm', {
filetypes = { 'python','cpp','lua' }
settings = ..., -- You must populate this according to the EFM readme
})
Snippet to enable the language server: >lua
vim.lsp.enable('efm')
Default config:
- cmd: >lua
{ "efm-langserver" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
elixirls
https://github.com/elixir-lsp/elixir-ls
`elixir-ls` can be installed by following the instructions [here](https://github.com/elixir-lsp/elixir-ls#building-and-running).
1. Download the zip from https://github.com/elixir-lsp/elixir-ls/releases/latest/
2. Unzip it and make it executable.
```bash
unzip elixir-ls.zip -d /path/to/elixir-ls
# Unix
chmod +x /path/to/elixir-ls/language_server.sh
```
**By default, elixir-ls doesn't have a `cmd` set.** This is because nvim-lspconfig does not make assumptions about
your path. You must add the following to your init.vim or init.lua to set `cmd` to the absolute path ($HOME and
~ are not expanded) of your unzipped elixir-ls.
>lua
vim.lsp.config('elixirls', {
-- Unix
cmd = { "/path/to/elixir-ls/language_server.sh" };
-- Windows
cmd = { "/path/to/elixir-ls/language_server.bat" };
...
})
'root_dir' is chosen like this: if two or more directories containing `mix.exs` were found when searching
directories upward, the second one (higher up) is chosen, with the assumption that it is the root of an umbrella
app. Otherwise the directory containing the single mix.exs that was found is chosen.
Snippet to enable the language server: >lua
vim.lsp.enable('elixirls')
Default config:
- cmd: >lua
{ "elixir-ls" }
- filetypes: >lua
{ "elixir", "eelixir", "heex", "surface" }
- root_dir (use "gF" to view): ../lsp/elixirls.lua:34
<
------------------------------------------------------------------------------
elmls
https://github.com/elm-tooling/elm-language-server#installation
If you don't want to use Nvim to install it, then you can use >sh
npm install -g elm elm-test elm-format @elm-tooling/elm-language-server
Snippet to enable the language server: >lua
vim.lsp.enable('elmls')
Default config:
- capabilities: >lua
{
offsetEncoding = { "utf-8", "utf-16" }
}
- cmd: >lua
{ "elm-language-server" }
- filetypes: >lua
{ "elm" }
- init_options: >lua
{
disableElmLSDiagnostics = false,
elmReviewDiagnostics = "off",
onlyUpdateDiagnosticsOnSave = false,
skipInstallPackageConfirmation = false
}
- root_dir (use "gF" to view): ../lsp/elmls.lua:13
<
------------------------------------------------------------------------------
elp
https://whatsapp.github.io/erlang-language-platform
ELP integrates Erlang into modern IDEs via the language server protocol and was
inspired by rust-analyzer.
Snippet to enable the language server: >lua
vim.lsp.enable('elp')
Default config:
- cmd: >lua
{ "elp", "server" }
- filetypes: >lua
{ "erlang" }
- root_markers: >lua
{ "rebar.config", "erlang.mk", ".git" }
<
------------------------------------------------------------------------------
ember
https://github.com/ember-tooling/ember-language-server
`ember-language-server` can be installed via `npm`:
>sh
npm install -g @ember-tooling/ember-language-server
Snippet to enable the language server: >lua
vim.lsp.enable('ember')
Default config:
- cmd: >lua
{ "ember-language-server", "--stdio" }
- filetypes: >lua
{ "handlebars", "typescript", "javascript", "typescript.glimmer", "javascript.glimmer" }
- root_markers: >lua
{ "ember-cli-build.js", ".git" }
<
------------------------------------------------------------------------------
emmet_language_server
https://github.com/olrtg/emmet-language-server
Package can be installed via `npm` >sh
npm install -g @olrtg/emmet-language-server
Snippet to enable the language server: >lua
vim.lsp.enable('emmet_language_server')
Default config:
- cmd: >lua
{ "emmet-language-server", "--stdio" }
- filetypes: >lua
{ "astro", "css", "eruby", "html", "htmlangular", "htmldjango", "javascriptreact", "less", "pug", "sass", "scss", "svelte", "templ", "typescriptreact", "vue" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
emmet_ls
https://github.com/aca/emmet-ls
Package can be installed via `npm` >sh
npm install -g emmet-ls
Snippet to enable the language server: >lua
vim.lsp.enable('emmet_ls')
Default config:
- cmd: >lua
{ "emmet-ls", "--stdio" }
- filetypes: >lua
{ "astro", "css", "eruby", "html", "htmlangular", "htmldjango", "javascriptreact", "less", "pug", "sass", "scss", "svelte", "templ", "typescriptreact", "vue" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
emmylua_ls
https://github.com/EmmyLuaLs/emmylua-analyzer-rust
Emmylua Analyzer Rust. Language Server for Lua.
`emmylua_ls` can be installed using `cargo` by following the instructions[here]
(https://github.com/EmmyLuaLs/emmylua-analyzer-rust?tab=readme-ov-file#install).
The default `cmd` assumes that the `emmylua_ls` binary can be found in `$PATH`.
It might require you to provide cargo binaries installation path in it.
Snippet to enable the language server: >lua
vim.lsp.enable('emmylua_ls')
Default config:
- cmd: >lua
{ "emmylua_ls" }
- filetypes: >lua
{ "lua" }
- root_markers: >lua
{ ".luarc.json", ".emmyrc.json", ".luacheckrc", ".git" }
- `workspace_required` : `false`
<
------------------------------------------------------------------------------
erg_language_server
https://github.com/erg-lang/erg#flags ELS
ELS (erg-language-server) is a language server for the Erg programming language.
erg-language-server can be installed via `cargo` and used as follows:
>sh
cargo install erg --features els
erg --language-server
Snippet to enable the language server: >lua
vim.lsp.enable('erg_language_server')
Default config:
- cmd: >lua
{ "erg", "--language-server" }
- filetypes: >lua
{ "erg" }
- root_markers: >lua
{ "package.er", ".git" }
<
------------------------------------------------------------------------------
erlangls
https://erlang-ls.github.io
Language Server for Erlang.
Clone [erlang_ls](https://github.com/erlang-ls/erlang_ls)
Compile the project with `make` and copy resulting binaries somewhere in your $PATH eg. `cp _build/*/bin/* ~/local/bin`
Installation instruction can be found [here](https://github.com/erlang-ls/erlang_ls).
Installation requirements:
- [Erlang OTP 21+](https://github.com/erlang/otp)
- [rebar3 3.9.1+](https://github.com/erlang/rebar3)
Snippet to enable the language server: >lua
vim.lsp.enable('erlangls')
Default config:
- cmd: >lua
{ "erlang_ls" }
- filetypes: >lua
{ "erlang" }
- root_markers: >lua
{ "rebar.config", "erlang.mk", ".git" }
<
------------------------------------------------------------------------------
esbonio
https://github.com/swyddfa/esbonio
Esbonio is a language server for [Sphinx](https://www.sphinx-doc.org/en/master/) documentation projects.
The language server can be installed via pip
>
pip install esbonio
Since Sphinx is highly extensible you will get best results if you install the language server in the same
Python environment as the one used to build your documentation. To ensure that the correct Python environment
is picked up, you can either launch `nvim` with the correct environment activated.
>
source env/bin/activate
nvim
Or you can modify the default `cmd` to include the full path to the Python interpreter.
>lua
vim.lsp.config('esbonio', {
cmd = { '/path/to/virtualenv/bin/python', '-m', 'esbonio' }
})
Esbonio supports a number of config values passed as `init_options` on startup, for example.
>lua
vim.lsp.config('esbonio', {
init_options = {
server = {
logLevel = "debug"
},
sphinx = {
confDir = "/path/to/docs",
srcDir = "${confDir}/../docs-src"
}
})
A full list and explanation of the available options can be found [here](https://docs.esbon.io/en/esbonio-language-server-v0.16.4/lsp/getting-started.html?editor=neovim-lspconfig#configuration)
Snippet to enable the language server: >lua
vim.lsp.enable('esbonio')
Default config:
- cmd: >lua
{ "python3", "-m", "esbonio" }
- filetypes: >lua
{ "rst" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
eslint
https://github.com/hrsh7th/vscode-langservers-extracted
`vscode-eslint-language-server` is a linting engine for JavaScript / Typescript.
It can be installed via `npm`:
>sh
npm i -g vscode-langservers-extracted
The default `on_attach` config provides the `LspEslintFixAll` command that can be used to format a document on save >lua
local base_on_attach = vim.lsp.config.eslint.on_attach
vim.lsp.config("eslint", {
on_attach = function(client, bufnr)
if not base_on_attach then return end
base_on_attach(client, bufnr)
vim.api.nvim_create_autocmd("BufWritePre", {
buffer = bufnr,
command = "LspEslintFixAll",
})
end,
})
See [vscode-eslint](https://github.com/microsoft/vscode-eslint/blob/55871979d7af184bf09af491b6ea35ebd56822cf/server/src/eslintServer.ts#L216-L229) for configuration options.
Messages handled in lspconfig: `eslint/openDoc`, `eslint/confirmESLintExecution`, `eslint/probeFailed`, `eslint/noLibrary`
Additional messages you can handle: `eslint/noConfig`
### Monorepo support
`vscode-eslint-language-server` supports monorepos by default. It will automatically find the config file corresponding to the package you are working on. You can use different configs in different packages.
This works without the need of spawning multiple instances of `vscode-eslint-language-server`.
You can use a different version of ESLint in each package, but it is recommended to use the same version of ESLint in all packages. The location of the ESLint binary will be determined automatically.
/!\ When using flat config files, you need to use them across all your packages in your monorepo, as it's a global setting for the server.
Snippet to enable the language server: >lua
vim.lsp.enable('eslint')
Default config:
- before_init (use "gF" to view): ../lsp/eslint.lua:61
- cmd: >lua
{ "vscode-eslint-language-server", "--stdio" }
- filetypes: >lua
{ "javascript", "javascriptreact", "javascript.jsx", "typescript", "typescriptreact", "typescript.tsx", "vue", "svelte", "astro", "htmlangular" }
- handlers: >lua
{
["eslint/confirmESLintExecution"] = <function 1>,
["eslint/noLibrary"] = <function 2>,
["eslint/openDoc"] = <function 3>,
["eslint/probeFailed"] = <function 4>
}
- on_attach (use "gF" to view): ../lsp/eslint.lua:61
- root_dir (use "gF" to view): ../lsp/eslint.lua:61
- settings: >lua
{
codeAction = {
disableRuleComment = {
enable = true,
location = "separateLine"
},
showDocumentation = {
enable = true
}
},
codeActionOnSave = {
enable = false,
mode = "all"
},
experimental = {
useFlatConfig = false
},
format = true,
nodePath = "",
onIgnoredFiles = "off",
problems = {
shortenToSingleLine = false
},
quiet = false,
rulesCustomizations = {},
run = "onType",
useESLintClass = false,
validate = "on",
workingDirectory = {
mode = "auto"
}
}
- `workspace_required` : `true`
<
------------------------------------------------------------------------------
expert
https://github.com/elixir-lang/expert
Expert is the official language server implementation for the Elixir programming language.
'root_dir' is chosen like this: if two or more directories containing `mix.exs` were found when
searching directories upward, the second one (higher up) is chosen, with the assumption that it
is the root of an umbrella app. Otherwise the directory containing the single mix.exs that was
found is chosen.
Snippet to enable the language server: >lua
vim.lsp.enable('expert')
Default config:
- cmd: >lua
{ "expert", "--stdio" }
- filetypes: >lua
{ "elixir", "eelixir", "heex", "surface" }
- root_dir (use "gF" to view): ../lsp/expert.lua:13
<
------------------------------------------------------------------------------
facility_language_server
https://github.com/FacilityApi/FacilityLanguageServer
Facility language server protocol (LSP) support.
Snippet to enable the language server: >lua
vim.lsp.enable('facility_language_server')
Default config:
- cmd: >lua
{ "facility-language-server" }
- filetypes: >lua
{ "fsd" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
fennel_language_server
https://github.com/rydesun/fennel-language-server
Fennel language server protocol (LSP) support.
Snippet to enable the language server: >lua
vim.lsp.enable('fennel_language_server')
Default config:
- cmd: >lua
{ "fennel-language-server" }
- filetypes: >lua
{ "fennel" }
- root_markers: >lua
{ ".git" }
- settings: >lua
{}
<
------------------------------------------------------------------------------
fennel_ls
https://sr.ht/~xerool/fennel-ls/
A language server for fennel.
fennel-ls is configured using the closest file to your working directory named `flsproject.fnl`.
All fennel-ls configuration options [can be found here](https://git.sr.ht/~xerool/fennel-ls/tree/HEAD/docs/manual.md#configuration).
Snippet to enable the language server: >lua
vim.lsp.enable('fennel_ls')
Default config:
- capabilities: >lua
{
offsetEncoding = { "utf-8", "utf-16" }
}
- cmd: >lua
{ "fennel-ls" }
- filetypes: >lua
{ "fennel" }
- root_dir (use "gF" to view): ../lsp/fennel_ls.lua:11
- settings: >lua
{}
<
------------------------------------------------------------------------------
fish_lsp
https://github.com/ndonfris/fish-lsp
A Language Server Protocol (LSP) tailored for the fish shell.
This project aims to enhance the coding experience for fish,
by introducing a suite of intelligent features like auto-completion,
scope aware symbol analysis, per-token hover generation, and many others.
[homepage](https://www.fish-lsp.dev/)
Snippet to enable the language server: >lua
vim.lsp.enable('fish_lsp')
Default config:
- cmd: >lua
{ "fish-lsp", "start" }
- filetypes: >lua
{ "fish" }
- root_markers: >lua
{ "config.fish", ".git" }
<
------------------------------------------------------------------------------
flow
https://flow.org/
https://github.com/facebook/flow
See below for how to setup Flow itself.
https://flow.org/en/docs/install/
See below for lsp command options.
>sh
npx flow lsp --help
Snippet to enable the language server: >lua
vim.lsp.enable('flow')
Default config:
- cmd (use "gF" to view): ../lsp/flow.lua:16
- filetypes: >lua
{ "javascript", "javascriptreact", "javascript.jsx" }
- root_markers: >lua
{ ".flowconfig" }
<
------------------------------------------------------------------------------
flux_lsp
https://github.com/influxdata/flux-lsp
`flux-lsp` can be installed via `cargo` >sh
cargo install --git https://github.com/influxdata/flux-lsp
Snippet to enable the language server: >lua
vim.lsp.enable('flux_lsp')
Default config:
- cmd: >lua
{ "flux-lsp" }
- filetypes: >lua
{ "flux" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
foam_ls
https://github.com/FoamScience/foam-language-server
`foam-language-server` can be installed via `npm >sh
npm install -g foam-language-server
Snippet to enable the language server: >lua
vim.lsp.enable('foam_ls')
Default config:
- cmd: >lua
{ "foam-ls", "--stdio" }
- filetypes: >lua
{ "foam", "OpenFOAM" }
- root_dir (use "gF" to view): ../lsp/foam_ls.lua:11
<
------------------------------------------------------------------------------
fortls
https://fortls.fortran-lang.org/index.html
fortls is a Fortran Language Server, the server can be installed via pip
>sh
pip install fortls
Settings to the server can be passed either through the `cmd` option or through
a local configuration file e.g. `.fortls`. For more information
see the `fortls` [documentation](https://fortls.fortran-lang.org/options.html).
Snippet to enable the language server: >lua
vim.lsp.enable('fortls')
Default config:
- cmd: >lua
{ "fortls", "--notify_init", "--hover_signature", "--hover_language=fortran", "--use_signature_help" }
- filetypes: >lua
{ "fortran" }
- root_markers: >lua
{ ".fortls", ".git" }
- settings: >lua
{}
<
------------------------------------------------------------------------------
fsautocomplete
https://github.com/fsharp/FsAutoComplete
Language Server for F# provided by FsAutoComplete (FSAC).
FsAutoComplete requires the [dotnet-sdk](https://dotnet.microsoft.com/download) to be installed.
The preferred way to install FsAutoComplete is with `dotnet tool install --global fsautocomplete`.
Instructions to compile from source are found on the main [repository](https://github.com/fsharp/FsAutoComplete).
You may also need to configure the filetype as Vim defaults to Forth for `*.fs` files:
`autocmd BufNewFile,BufRead *.fs,*.fsx,*.fsi set filetype=fsharp`
This is automatically done by plugins such as [PhilT/vim-fsharp](https://github.com/PhilT/vim-fsharp), [fsharp/vim-fsharp](https://github.com/fsharp/vim-fsharp), and [adelarsq/neofsharp.vim](https://github.com/adelarsq/neofsharp.vim).
Snippet to enable the language server: >lua
vim.lsp.enable('fsautocomplete')
Default config:
- cmd: >lua
{ "fsautocomplete", "--adaptive-lsp-server-enabled" }
- filetypes: >lua
{ "fsharp" }
- init_options: >lua
{
AutomaticWorkspaceInit = true
}
- root_dir (use "gF" to view): ../lsp/fsautocomplete.lua:23
- settings: >lua
{
FSharp = {
EnableReferenceCodeLens = true,
ExternalAutocomplete = false,
InterfaceStubGeneration = true,
InterfaceStubGenerationMethodBody = 'failwith "Not Implemented"',
InterfaceStubGenerationObjectIdentifier = "this",
Linter = true,
RecordStubGeneration = true,
RecordStubGenerationBody = 'failwith "Not Implemented"',
ResolveNamespaces = true,
SimplifyNameAnalyzer = true,
UnionCaseStubGeneration = true,
UnionCaseStubGenerationBody = 'failwith "Not Implemented"',
UnusedDeclarationsAnalyzer = true,
UnusedOpensAnalyzer = true,
UseSdkScripts = true,
keywordsAutocomplete = true
}
}
<
------------------------------------------------------------------------------
fsharp_language_server
F# Language Server
https://github.com/faldor20/fsharp-language-server
An implementation of the language server protocol using the F# Compiler Service.
Build the project from source and override the command path to location of DLL.
If filetype determination is not already performed by an available plugin ([PhilT/vim-fsharp](https://github.com/PhilT/vim-fsharp), [fsharp/vim-fsharp](https://github.com/fsharp/vim-fsharp), and [adelarsq/neofsharp.vim](https://github.com/adelarsq/neofsharp.vim).
), then the following must be added to initialization configuration:
`autocmd BufNewFile,BufRead *.fs,*.fsx,*.fsi set filetype=fsharp`
Snippet to enable the language server: >lua
vim.lsp.enable('fsharp_language_server')
Default config:
- cmd: >lua
{ "dotnet", "FSharpLanguageServer.dll" }
- filetypes: >lua
{ "fsharp" }
- init_options: >lua
{
AutomaticWorkspaceInit = true
}
- root_dir (use "gF" to view): ../lsp/fsharp_language_server.lua:19
- settings: >lua
{}
<
------------------------------------------------------------------------------
fstar
https://github.com/FStarLang/FStar
LSP support is included in FStar. Make sure `fstar.exe` is in your PATH.
Snippet to enable the language server: >lua
vim.lsp.enable('fstar')
Default config:
- cmd: >lua
{ "fstar.exe", "--lsp" }
- filetypes: >lua
{ "fstar" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
futhark_lsp
https://github.com/diku-dk/futhark
Futhark Language Server
This language server comes with the futhark compiler and is run with the command>
futhark lsp
Snippet to enable the language server: >lua
vim.lsp.enable('futhark_lsp')
Default config:
- cmd: >lua
{ "futhark", "lsp" }
- filetypes: >lua
{ "futhark", "fut" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
gdscript
https://github.com/godotengine/godot
Language server for GDScript, used by Godot Engine.
Snippet to enable the language server: >lua
vim.lsp.enable('gdscript')
Default config:
- cmd (use "gF" to view): ../lsp/gdscript.lua:11
- filetypes: >lua
{ "gd", "gdscript", "gdscript3" }
- root_markers: >lua
{ "project.godot", ".git" }
<
------------------------------------------------------------------------------
gdshader_lsp
https://github.com/godofavacyn/gdshader-lsp
A language server for the Godot Shading language.
Snippet to enable the language server: >lua
vim.lsp.enable('gdshader_lsp')
Default config:
- cmd: >lua
{ "gdshader-lsp", "--stdio" }
- filetypes: >lua
{ "gdshader", "gdshaderinc" }
- root_markers: >lua
{ "project.godot" }
<
------------------------------------------------------------------------------
gh_actions_ls
https://github.com/lttb/gh-actions-language-server
Language server for GitHub Actions.
The projects [forgejo](https://forgejo.org/) and [gitea](https://about.gitea.com/)
design their actions to be as compatible to github as possible
with only [a few differences](https://docs.gitea.com/usage/actions/comparison#unsupported-workflows-syntax) between the systems.
The `gh_actions_ls` is therefore enabled for those `yaml` files as well.
The `gh-actions-language-server` can be installed via `npm`:
>sh
npm install -g gh-actions-language-server
Snippet to enable the language server: >lua
vim.lsp.enable('gh_actions_ls')
Default config:
- capabilities: >lua
{
workspace = {
didChangeWorkspaceFolders = {
dynamicRegistration = true
}
}
}
- cmd: >lua
{ "gh-actions-language-server", "--stdio" }
- filetypes: >lua
{ "yaml" }
- handlers: >lua
{
["actions/readFile"] = <function 1>
}
- init_options: >lua
{}
- root_dir (use "gF" to view): ../lsp/gh_actions_ls.lua:18
<
------------------------------------------------------------------------------
ghcide
https://github.com/digital-asset/ghcide
A library for building Haskell IDE tooling.
"ghcide" isn't for end users now. Use "haskell-language-server" instead of "ghcide".
Snippet to enable the language server: >lua
vim.lsp.enable('ghcide')
Default config:
- cmd: >lua
{ "ghcide", "--lsp" }
- filetypes: >lua
{ "haskell", "lhaskell" }
- root_markers: >lua
{ "stack.yaml", "hie-bios", "BUILD.bazel", "cabal.config", "package.yaml" }
<
------------------------------------------------------------------------------
ghdl_ls
https://github.com/ghdl/ghdl-language-server
A language server for VHDL, using ghdl as its backend.
`ghdl-ls` is part of pyghdl, for installation instructions see
[the upstream README](https://github.com/ghdl/ghdl/tree/master/pyGHDL/lsp).
Snippet to enable the language server: >lua
vim.lsp.enable('ghdl_ls')
Default config:
- cmd: >lua
{ "ghdl-ls" }
- filetypes: >lua
{ "vhdl" }
- root_markers: >lua
{ "hdl-prj.json", ".git" }
<
------------------------------------------------------------------------------
ginko_ls
`ginko_ls` is meant to be a feature-complete language server for device-trees.
Language servers can be used in many editors, such as Visual Studio Code, Emacs
or Vim
Install `ginko_ls` from https://github.com/Schottkyc137/ginko and add it to path
`ginko_ls` doesn't require any configuration.
Snippet to enable the language server: >lua
vim.lsp.enable('ginko_ls')
Default config:
- cmd: >lua
{ "ginko_ls" }
- filetypes: >lua
{ "dts" }
- root_markers: >lua
{ ".git" }
- settings: >lua
{}
<
------------------------------------------------------------------------------
gitlab_ci_ls
https://github.com/alesbrelih/gitlab-ci-ls
Language Server for Gitlab CI
`gitlab-ci-ls` can be installed via cargo:
cargo install gitlab-ci-ls
Snippet to enable the language server: >lua
vim.lsp.enable('gitlab_ci_ls')
Default config:
- cmd: >lua
{ "gitlab-ci-ls" }
- filetypes: >lua
{ "yaml.gitlab" }
- init_options: >lua
{
cache_path = "/home/runner/.cache/gitlab-ci-ls/",
log_path = "/home/runner/.cache/gitlab-ci-ls//log/gitlab-ci-ls.log"
}
- root_dir (use "gF" to view): ../lsp/gitlab_ci_ls.lua:15
<
------------------------------------------------------------------------------
gitlab_duo
GitLab Duo Language Server Configuration for Neovim
https://gitlab.com/gitlab-org/editor-extensions/gitlab-lsp
The GitLab LSP enables any editor or IDE to integrate with GitLab Duo
for AI-powered code suggestions via the Language Server Protocol.
Prerequisites:
- Node.js and npm installed
- GitLab account with Duo Pro license
- Internet connection for OAuth device flow
Setup:
1. Run :LspGitLabDuoSignIn to start OAuth authentication
2. Follow the browser prompts to authorize
3. Enable inline completion in LspAttach event (see example below)
Inline Completion Example >lua
vim.api.nvim_create_autocmd('LspAttach', {
callback = function(args)
local bufnr = args.buf
local client = assert(vim.lsp.get_client_by_id(args.data.client_id))
if vim.lsp.inline_completion and
client:supports_method(vim.lsp.protocol.Methods.textDocument_inlineCompletion, bufnr) then
vim.lsp.inline_completion.enable(true, { bufnr = bufnr })
-- Tab to accept suggestion
vim.keymap.set('i', '<Tab>', function()
if vim.lsp.inline_completion.is_visible() then
return vim.lsp.inline_completion.accept()
else
return '<Tab>'
end
end, { expr = true, buffer = bufnr, desc = 'GitLab Duo: Accept suggestion' })
-- Alt/Option+[ for previous suggestion
vim.keymap.set('i', '<M-[>', vim.lsp.inline_completion.select_prev,
{ buffer = bufnr, desc = 'GitLab Duo: Previous suggestion' })
-- Alt/Option+] for next suggestion
vim.keymap.set('i', '<M-]>', vim.lsp.inline_completion.select_next,
{ buffer = bufnr, desc = 'GitLab Duo: Next suggestion' })
end
end
})
Snippet to enable the language server: >lua
vim.lsp.enable('gitlab_duo')
Default config:
- cmd: >lua
{ "npx", "--registry=https://gitlab.com/api/v4/packages/npm/", "@gitlab-org/gitlab-lsp", "--stdio" }
- filetypes: >lua
{ "ruby", "go", "javascript", "typescript", "typescriptreact", "javascriptreact", "rust", "lua", "python", "java", "cpp", "c", "php", "cs", "kotlin", "swift", "scala", "vue", "svelte", "html", "css", "scss", "json", "yaml" }
- init_options: >lua
{
editorInfo = {
name = "Neovim",
version = "0.12.0-dev+gc2e0fd1c35"
},
editorPluginInfo = {
name = "Neovim LSP",
version = "0.12.0-dev+gc2e0fd1c35"
},
extension = {
name = "Neovim LSP Client",
version = "0.12.0-dev+gc2e0fd1c35"
},
ide = {
name = "Neovim",
vendor = "Neovim",
version = "0.12.0-dev+gc2e0fd1c35"
}
}
- on_attach (use "gF" to view): ../lsp/gitlab_duo.lua:317
- on_init (use "gF" to view): ../lsp/gitlab_duo.lua:317
- root_markers: >lua
{ ".git" }
- settings: >lua
{
baseUrl = "https://gitlab.com",
codeCompletion = {
enableSecretRedaction = true
},
featureFlags = {
streamCodeGenerations = false
},
logLevel = "info",
telemetry = {
enabled = false
}
}
<
------------------------------------------------------------------------------
glasgow
https://github.com/nolanderc/glasgow
Provides language features for WGSL (WebGPU Shading Language):
- Completions:
- Local functions/variables/types.
- Fields and swizzles.
- Builtin types and functions (`dot`, `reflect`, `textureSample`, `vec3`, `mat4x2`, etc.)
- Hover Documentation:
- Function signatures.
- Variable types.
- Includes builtin types and functions. Text is taken from the WGSL specification.
- Goto Definition
- Find all References
- Rename
- Formatter
`glasgow` can be installed via `cargo` >sh
cargo install glasgow
Snippet to enable the language server: >lua
vim.lsp.enable('glasgow')
Default config:
- cmd: >lua
{ "glasgow" }
- filetypes: >lua
{ "wgsl" }
- root_markers: >lua
{ ".git" }
- settings: >lua
{}
<
------------------------------------------------------------------------------
gleam
https://github.com/gleam-lang/gleam
A language server for Gleam Programming Language.
It comes with the Gleam compiler, for installation see: [Installing Gleam](https://gleam.run/getting-started/installing/)
Snippet to enable the language server: >lua
vim.lsp.enable('gleam')
Default config:
- cmd: >lua
{ "gleam", "lsp" }
- filetypes: >lua
{ "gleam" }
- root_markers: >lua
{ "gleam.toml", ".git" }
<
------------------------------------------------------------------------------
glint
https://github.com/typed-ember/glint
https://typed-ember.gitbook.io/glint/
`glint-language-server` is installed when adding `@glint/core` to your project's devDependencies:
```sh
npm install @glint/core --save-dev
yarn add -D @glint/core
This configuration uses the local installation of `glint-language-server`
(found in the `node_modules` directory of your project).
To use a global installation of `glint-language-server`,
set the `init_options.glint.useGlobal` to `true`.
vim.lsp.config('glint', {
init_options = {
glint = {
useGlobal = true,
},
},
})
Snippet to enable the language server: >lua
vim.lsp.enable('glint')
Default config:
- cmd (use "gF" to view): ../lsp/glint.lua:26
- filetypes: >lua
{ "html.handlebars", "handlebars", "typescript", "typescript.glimmer", "javascript", "javascript.glimmer" }
- init_options: >lua
{
glint = {
useGlobal = false
}
}
- root_markers: >lua
{ ".glintrc.yml", ".glintrc", ".glintrc.json", ".glintrc.js", "glint.config.js", "package.json" }
- `workspace_required` : `true`
<
------------------------------------------------------------------------------
glsl_analyzer
https://github.com/nolanderc/glsl_analyzer
Language server for GLSL
Snippet to enable the language server: >lua
vim.lsp.enable('glsl_analyzer')
Default config:
- capabilities: >lua
{}
- cmd: >lua
{ "glsl_analyzer" }
- filetypes: >lua
{ "glsl", "vert", "tesc", "tese", "frag", "geom", "comp" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
glslls
https://github.com/svenstaro/glsl-language-server
Language server implementation for GLSL
`glslls` can be compiled and installed manually, or, if your distribution has access to the AUR,
via the `glsl-language-server` AUR package
Snippet to enable the language server: >lua
vim.lsp.enable('glslls')
Default config:
- capabilities: >lua
{
offsetEncoding = { "utf-8", "utf-16" },
textDocument = {
completion = {
editsNearCursor = true
}
}
}
- cmd: >lua
{ "glslls", "--stdin" }
- filetypes: >lua
{ "glsl", "vert", "tesc", "tese", "frag", "geom", "comp" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
gnls
https://github.com/microsoft/gnls
Microsoft's language server for GN build files.
Assuming there is a `gnls` script somewhere in your `$PATH`, containing
for example:
>shell
GNLS_SRC_DIR=</path/to/gnls>
exec node ${GNLS_SRC_DIR}/build/server.js $@
Snippet to enable the language server: >lua
vim.lsp.enable('gnls')
Default config:
- cmd: >lua
{ "gnls", "--stdio" }
- filetypes: >lua
{ "gn" }
- root_markers: >lua
{ ".gn", ".git" }
<
------------------------------------------------------------------------------
golangci_lint_ls
Combination of both lint server and client
https://github.com/nametake/golangci-lint-langserver
https://github.com/golangci/golangci-lint
Installation of binaries needed is done via
>
go install github.com/nametake/golangci-lint-langserver@latest
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
Snippet to enable the language server: >lua
vim.lsp.enable('golangci_lint_ls')
Default config:
- before_init (use "gF" to view): ../lsp/golangci_lint_ls.lua:17
- cmd: >lua
{ "golangci-lint-langserver" }
- filetypes: >lua
{ "go", "gomod" }
- init_options: >lua
{
command = { "golangci-lint", "run", "--output.json.path=stdout", "--show-stats=false" }
}
- root_markers: >lua
{ ".golangci.yml", ".golangci.yaml", ".golangci.toml", ".golangci.json", "go.work", "go.mod", ".git" }
<
------------------------------------------------------------------------------
gopls
https://github.com/golang/tools/tree/master/gopls
Google's lsp server for golang.
Snippet to enable the language server: >lua
vim.lsp.enable('gopls')
Default config:
- cmd: >lua
{ "gopls" }
- filetypes: >lua
{ "go", "gomod", "gowork", "gotmpl" }
- root_dir (use "gF" to view): ../lsp/gopls.lua:89
<
------------------------------------------------------------------------------
gradle_ls
https://github.com/microsoft/vscode-gradle
Microsoft's lsp server for gradle files
If you're setting this up manually, build vscode-gradle using `./gradlew installDist` and point `cmd` to the `gradle-language-server` generated in the build directory
Snippet to enable the language server: >lua
vim.lsp.enable('gradle_ls')
Default config:
- cmd: >lua
{ "gradle-language-server" }
- filetypes: >lua
{ "groovy" }
- init_options: >lua
{
settings = {
gradleWrapperEnabled = true
}
}
- root_markers: >lua
{ "settings.gradle", "build.gradle" }
<
------------------------------------------------------------------------------
grammarly
https://github.com/znck/grammarly
`grammarly-languageserver` can be installed via `npm`:
>sh
npm i -g grammarly-languageserver
WARNING: Since this language server uses Grammarly's API, any document you open with it running is shared with them. Please evaluate their [privacy policy](https://www.grammarly.com/privacy-policy) before using this.
Snippet to enable the language server: >lua
vim.lsp.enable('grammarly')
Default config:
- cmd: >lua
{ "grammarly-languageserver", "--stdio" }
- filetypes: >lua
{ "markdown" }
- handlers: >lua
{
["$/updateDocumentState"] = <function 1>
}
- init_options: >lua
{
clientId = "client_BaDkMgx4X19X9UxxYRCXZo"
}
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
graphql
https://github.com/graphql/graphiql/tree/main/packages/graphql-language-service-cli
`graphql-lsp` can be installed via `npm`:
>sh
npm install -g graphql-language-service-cli
Note that you must also have [the graphql package](https://github.com/graphql/graphql-js) installed within your project and create a [GraphQL config file](https://the-guild.dev/graphql/config/docs).
Snippet to enable the language server: >lua
vim.lsp.enable('graphql')
Default config:
- cmd: >lua
{ "graphql-lsp", "server", "-m", "stream" }
- filetypes: >lua
{ "graphql", "typescriptreact", "javascriptreact" }
- root_dir (use "gF" to view): ../lsp/graphql.lua:16
<
------------------------------------------------------------------------------
groovyls
https://github.com/prominic/groovy-language-server.git
Requirements:
- Linux/macOS (for now)
- Java 11+
`groovyls` can be installed by following the instructions [here](https://github.com/prominic/groovy-language-server.git#build).
If you have installed groovy language server, you can set the `cmd` custom path as follow:
>lua
vim.lsp.config('groovyls', {
-- Unix
cmd = { "java", "-jar", "path/to/groovyls/groovy-language-server-all.jar" },
...
})
Snippet to enable the language server: >lua
vim.lsp.enable('groovyls')
Default config:
- cmd: >lua
{ "java", "-jar", "groovy-language-server-all.jar" }
- filetypes: >lua
{ "groovy" }
- root_markers: >lua
{ "Jenkinsfile", ".git" }
<
------------------------------------------------------------------------------
guile_ls
https://codeberg.org/rgherdt/scheme-lsp-server
The recommended way is to install guile-lsp-server is using Guix. Unfortunately it is still not available at the official Guix channels, but you can use the provided channel guix.scm in the repo >sh
guix package -f guix.scm
Checkout the repo for more info.
Note: This LSP will start on `scheme.guile` filetype. You can set this file type using `:help modeline` or adding https://gitlab.com/HiPhish/guile.vim to your plugins to automatically set it.
Snippet to enable the language server: >lua
vim.lsp.enable('guile_ls')
Default config:
- cmd: >lua
{ "guile-lsp-server" }
- filetypes: >lua
{ "scheme.guile" }
- root_markers: >lua
{ "guix.scm", ".git" }
<
------------------------------------------------------------------------------
harper_ls
https://github.com/automattic/harper
The language server for Harper, the slim, clean language checker for developers.
See our [documentation](https://writewithharper.com/docs/integrations/neovim) for more information on settings.
In short, they should look something like this >lua
vim.lsp.config('harper_ls', {
settings = {
["harper-ls"] = {
userDictPath = "~/dict.txt"
}
},
})
Snippet to enable the language server: >lua
vim.lsp.enable('harper_ls')
Default config:
- cmd: >lua
{ "harper-ls", "--stdio" }
- filetypes: >lua
{ "asciidoc", "c", "cpp", "cs", "gitcommit", "go", "html", "java", "javascript", "lua", "markdown", "nix", "python", "ruby", "rust", "swift", "toml", "typescript", "typescriptreact", "haskell", "cmake", "typst", "php", "dart", "clojure", "sh" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
hdl_checker
https://github.com/suoto/hdl_checker
Language server for hdl-checker.
Install using: `pip install hdl-checker --upgrade`
Snippet to enable the language server: >lua
vim.lsp.enable('hdl_checker')
Default config:
- cmd: >lua
{ "hdl_checker", "--lsp" }
- filetypes: >lua
{ "vhdl", "verilog", "systemverilog" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
helm_ls
https://github.com/mrjosh/helm-ls
Helm Language server. (This LSP is in early development)
`helm Language server` can be installed by following the instructions [here](https://github.com/mrjosh/helm-ls).
The default `cmd` assumes that the `helm_ls` binary can be found in `$PATH`.
If need Helm file highlight use [vim-helm](https://github.com/towolf/vim-helm) plugin.
Snippet to enable the language server: >lua
vim.lsp.enable('helm_ls')
Default config:
- capabilities: >lua
{
workspace = {
didChangeWatchedFiles = {
dynamicRegistration = true
}
}
}
- cmd: >lua
{ "helm_ls", "serve" }
- filetypes: >lua
{ "helm", "yaml.helm-values" }
- root_markers: >lua
{ "Chart.yaml" }
<
------------------------------------------------------------------------------
herb_ls
https://www.npmjs.com/package/@herb-tools/language-server
https://github.com/marcoroth/herb
HTML+ERB (HTML + Embedded Ruby)
Powerful and seamless HTML-aware ERB parsing and tooling.
Herb is designed from the ground up to deeply understand `.html.erb` files,
preserving both HTML and embedded Ruby structure without losing any details.
`herb-language-server` can be installed via `npm`:
>sh
npm install -g @herb-tools/language-server
or via `yarn`:
>sh
yarn global add @herb-tools/language-server
Snippet to enable the language server: >lua
vim.lsp.enable('herb_ls')
Default config:
- cmd: >lua
{ "herb-language-server", "--stdio" }
- filetypes: >lua
{ "html", "eruby" }
- root_markers: >lua
{ "Gemfile", ".git" }
<
------------------------------------------------------------------------------
hhvm
Language server for programs written in Hack
https://hhvm.com/
https://github.com/facebook/hhvm
See below for how to setup HHVM & typechecker:
https://docs.hhvm.com/hhvm/getting-started/getting-started
Snippet to enable the language server: >lua
vim.lsp.enable('hhvm')
Default config:
- cmd: >lua
{ "hh_client", "lsp" }
- filetypes: >lua
{ "php", "hack" }
- root_markers: >lua
{ ".hhconfig" }
<
------------------------------------------------------------------------------
hie
https://github.com/haskell/haskell-ide-engine
the following init_options are supported (see https://github.com/haskell/haskell-ide-engine#configuration) >lua
init_options = {
languageServerHaskell = {
hlintOn = bool;
maxNumberOfProblems = number;
diagnosticsDebounceDuration = number;
liquidOn = bool (default false);
completionSnippetsOn = bool (default true);
formatOnImportOn = bool (default true);
formattingProvider = string (default "brittany", alternate "floskell");
}
}
Snippet to enable the language server: >lua
vim.lsp.enable('hie')
Default config:
- cmd: >lua
{ "hie-wrapper", "--lsp" }
- filetypes: >lua
{ "haskell" }
- root_markers: >lua
{ "stack.yaml", "package.yaml", ".git" }
<
------------------------------------------------------------------------------
hlasm
`hlasm_language_server` is a language server for the High Level Assembler language used on IBM SystemZ mainframes.
To learn how to configure the HLASM language server, see the [HLASM Language Support documentation](https://github.com/eclipse-che4z/che-che4z-lsp-for-hlasm).
Snippet to enable the language server: >lua
vim.lsp.enable('hlasm')
Default config:
- cmd: >lua
{ "hlasm_language_server" }
- filetypes: >lua
{ "hlasm" }
- root_markers: >lua
{ ".hlasmplugin" }
<
------------------------------------------------------------------------------
hls
https://github.com/haskell/haskell-language-server
Haskell Language Server
If you are using HLS 1.9.0.0, enable the language server to launch on Cabal files as well:
>lua
vim.lsp.config('hls', {
filetypes = { 'haskell', 'lhaskell', 'cabal' },
})
Snippet to enable the language server: >lua
vim.lsp.enable('hls')
Default config:
- cmd: >lua
{ "haskell-language-server-wrapper", "--lsp" }
- filetypes: >lua
{ "haskell", "lhaskell" }
- root_dir (use "gF" to view): ../lsp/hls.lua:18
- settings: >lua
{
haskell = {
cabalFormattingProvider = "cabal-fmt",
formattingProvider = "ormolu"
}
}
<
------------------------------------------------------------------------------
hoon_ls
https://github.com/urbit/hoon-language-server
A language server for Hoon.
The language server can be installed via `npm install -g @hoon-language-server`
Start a fake ~zod with `urbit -F zod`.
Start the language server at the Urbit Dojo prompt with: `|start %language-server`
Snippet to enable the language server: >lua
vim.lsp.enable('hoon_ls')
Default config:
- cmd: >lua
{ "hoon-language-server" }
- filetypes: >lua
{ "hoon" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
html
https://github.com/hrsh7th/vscode-langservers-extracted
`vscode-html-language-server` can be installed via `npm` >sh
npm i -g vscode-langservers-extracted
Neovim does not currently include built-in snippets. `vscode-html-language-server` only provides completions when snippet support is enabled.
To enable completion, install a snippet plugin and add the following override to your language client capabilities during setup.
The code-formatting feature of the lsp can be controlled with the `provideFormatter` option.
>lua
--Enable (broadcasting) snippet capability for completion
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities.textDocument.completion.completionItem.snippetSupport = true
vim.lsp.config('html', {
capabilities = capabilities,
})
Snippet to enable the language server: >lua
vim.lsp.enable('html')
Default config:
- cmd: >lua
{ "vscode-html-language-server", "--stdio" }
- filetypes: >lua
{ "html", "templ" }
- init_options: >lua
{
configurationSection = { "html", "css", "javascript" },
embeddedLanguages = {
css = true,
javascript = true
},
provideFormatter = true
}
- root_markers: >lua
{ "package.json", ".git" }
- settings: >lua
{}
<
------------------------------------------------------------------------------
htmx
https://github.com/ThePrimeagen/htmx-lsp
`htmx-lsp` can be installed via `cargo` >sh
cargo install htmx-lsp
Lsp is still very much work in progress and experimental. Use at your own risk.
Snippet to enable the language server: >lua
vim.lsp.enable('htmx')
Default config:
- cmd: >lua
{ "htmx-lsp" }
- filetypes: >lua
{ "aspnetcorerazor", "astro", "astro-markdown", "blade", "clojure", "django-html", "htmldjango", "edge", "eelixir", "elixir", "ejs", "erb", "eruby", "gohtml", "gohtmltmpl", "haml", "handlebars", "hbs", "html", "htmlangular", "html-eex", "heex", "jade", "leaf", "liquid", "markdown", "mdx", "mustache", "njk", "nunjucks", "php", "razor", "slim", "twig", "javascript", "javascriptreact", "reason", "rescript", "typescript", "typescriptreact", "vue", "svelte", "templ" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
hydra_lsp
https://github.com/Retsediv/hydra-lsp
LSP for Hydra Python package config files.
Snippet to enable the language server: >lua
vim.lsp.enable('hydra_lsp')
Default config:
- cmd: >lua
{ "hydra-lsp" }
- filetypes: >lua
{ "yaml" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
hylo_ls
https://github.com/hylo-lang/hylo-language-server
A language server for the Hylo programming language.
Snippet to enable the language server: >lua
vim.lsp.enable('hylo_ls')
Default config:
- cmd: >lua
{ "hylo-language-server", "--stdio" }
- filetypes: >lua
{ "hylo" }
- root_markers: >lua
{ ".git" }
- settings: >lua
{}
<
------------------------------------------------------------------------------
hyprls
https://github.com/hyprland-community/hyprls
`hyprls` can be installed via `go` >sh
go install github.com/hyprland-community/hyprls/cmd/hyprls@latest
Snippet to enable the language server: >lua
vim.lsp.enable('hyprls')
Default config:
- cmd: >lua
{ "hyprls", "--stdio" }
- filetypes: >lua
{ "hyprlang" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
idris2_lsp
https://github.com/idris-community/idris2-lsp
The Idris 2 language server.
Plugins for the Idris 2 filetype include
[Idris2-Vim](https://github.com/edwinb/idris2-vim) (fewer features, stable) and
[Nvim-Idris2](https://github.com/ShinKage/nvim-idris2) (cutting-edge,
experimental).
Idris2-Lsp requires a build of Idris 2 that includes the "Idris 2 API" package.
Package managers with known support for this build include the
[AUR](https://aur.archlinux.org/packages/idris2/) and
[Homebrew](https://formulae.brew.sh/formula/idris2#default).
If your package manager does not support the Idris 2 API, you will need to build
Idris 2 from source. Refer to the
[the Idris 2 installation instructions](https://github.com/idris-lang/Idris2/blob/main/INSTALL.md)
for details. Steps 5 and 8 are listed as "optional" in that guide, but they are
necessary in order to make the Idris 2 API available.
You need to install a version of Idris2-Lsp that is compatible with your
version of Idris 2. There should be a branch corresponding to every released
Idris 2 version after v0.4.0. Use the latest commit on that branch. For example,
if you have Idris v0.5.1, you should use the v0.5.1 branch of Idris2-Lsp.
If your Idris 2 version is newer than the newest Idris2-Lsp branch, use the
latest commit on the `master` branch, and set a reminder to check the Idris2-Lsp
repo for the release of a compatible versioned branch.
Snippet to enable the language server: >lua
vim.lsp.enable('idris2_lsp')
Default config:
- cmd: >lua
{ "idris2-lsp" }
- filetypes: >lua
{ "idris2" }
- root_dir (use "gF" to view): ../lsp/idris2_lsp.lua:35
<
------------------------------------------------------------------------------
intelephense
https://intelephense.com/
`intelephense` can be installed via `npm` >sh
npm install -g intelephense
>lua
-- See https://github.com/bmewburn/intelephense-docs/blob/master/installation.md#initialisation-options
init_options = {
storagePath = …, -- Optional absolute path to storage dir. Defaults to os.tmpdir().
globalStoragePath = …, -- Optional absolute path to a global storage dir. Defaults to os.homedir().
licenceKey = …, -- Optional licence key or absolute path to a text file containing the licence key.
clearCache = …, -- Optional flag to clear server state. State can also be cleared by deleting {storagePath}/intelephense
}
-- See https://github.com/bmewburn/intelephense-docs
settings = {
intelephense = {
files = {
maxSize = 1000000;
};
};
}
Snippet to enable the language server: >lua
vim.lsp.enable('intelephense')
Default config:
- cmd: >lua
{ "intelephense", "--stdio" }
- filetypes: >lua
{ "php" }
- root_markers: >lua
{ ".git", "composer.json" }
<
------------------------------------------------------------------------------
janet_lsp
https://github.com/CFiggers/janet-lsp
A Language Server Protocol implementation for Janet.
Snippet to enable the language server: >lua
vim.lsp.enable('janet_lsp')
Default config:
- cmd: >lua
{ "janet-lsp", "--stdio" }
- filetypes: >lua
{ "janet" }
- root_markers: >lua
{ "project.janet", ".git" }
<
------------------------------------------------------------------------------
java_language_server
https://github.com/georgewfraser/java-language-server
Java language server
Point `cmd` to `lang_server_linux.sh` or the equivalent script for macOS/Windows provided by java-language-server
Snippet to enable the language server: >lua
vim.lsp.enable('java_language_server')
Default config:
- cmd: >lua
{ "java-language-server" }
- filetypes: >lua
{ "java" }
- root_markers: >lua
{ "build.gradle", "build.gradle.kts", "pom.xml", ".git" }
- settings: >lua
{}
<
------------------------------------------------------------------------------
jdtls
https://projects.eclipse.org/projects/eclipse.jdt.ls
Language server for Java.
IMPORTANT: If you want all the features jdtls has to offer, [nvim-jdtls](https://github.com/mfussenegger/nvim-jdtls)
is highly recommended. If all you need is diagnostics, completion, imports, gotos and formatting and some code actions
you can keep reading here.
For manual installation you can download precompiled binaries from the
[official downloads site](http://download.eclipse.org/jdtls/snapshots/?d)
and ensure that the `PATH` variable contains the `bin` directory of the extracted archive.
>lua
-- init.lua
vim.lsp.enable('jdtls')
You can also pass extra custom jvm arguments with the JDTLS_JVM_ARGS environment variable as a space separated list of arguments,
that will be converted to multiple --jvm-arg=<param> args when passed to the jdtls script. This will allow for example tweaking
the jvm arguments or integration with external tools like lombok:
>sh
export JDTLS_JVM_ARGS="-javaagent:$HOME/.local/share/java/lombok.jar"
For automatic installation you can use the following unofficial installers/launchers under your own risk:
- [jdtls-launcher](https://github.com/eruizc-dev/jdtls-launcher) (Includes lombok support by default)
```lua
-- init.lua
vim.lsp.config('jdtls', { cmd = { 'jdtls' } })
```
Snippet to enable the language server: >lua
vim.lsp.enable('jdtls')
Default config:
- cmd (use "gF" to view): ../lsp/jdtls.lua:74
- filetypes: >lua
{ "java" }
- init_options: >lua
{}
- root_markers: >lua
{ { "mvnw", "gradlew", "settings.gradle", "settings.gradle.kts", ".git" }, { "build.xml", "pom.xml", "build.gradle", "build.gradle.kts" } }
<
------------------------------------------------------------------------------
jedi_language_server
https://github.com/pappasam/jedi-language-server
`jedi-language-server`, a language server for Python, built on top of jedi
Snippet to enable the language server: >lua
vim.lsp.enable('jedi_language_server')
Default config:
- cmd: >lua
{ "jedi-language-server" }
- filetypes: >lua
{ "python" }
- root_markers: >lua
{ "pyproject.toml", "setup.py", "setup.cfg", "requirements.txt", "Pipfile", ".git" }
<
------------------------------------------------------------------------------
jinja_lsp
jinja-lsp enhances minijinja development experience by providing Helix/Nvim users with advanced features such as autocomplete, syntax highlighting, hover, goto definition, code actions and linting.
The file types are not detected automatically, you can register them manually (see below) or override the filetypes:
>lua
vim.filetype.add {
extension = {
jinja = 'jinja',
jinja2 = 'jinja',
j2 = 'jinja',
},
}
Snippet to enable the language server: >lua
vim.lsp.enable('jinja_lsp')
Default config:
- cmd: >lua
{ "jinja-lsp" }
- filetypes: >lua
{ "jinja" }
- name: >lua
"jinja_lsp"
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
jqls
https://github.com/wader/jq-lsp
Language server for jq, written using Go.
You can install the server easily using go install >sh
# install directly
go install github.com/wader/jq-lsp@master
# copy binary to $PATH
cp $(go env GOPATH)/bin/jq-lsp /usr/local/bin
Note: To activate properly nvim needs to know the jq filetype.
You can add it via >lua
vim.cmd([[au BufRead,BufNewFile *.jq setfiletype jq]])
Snippet to enable the language server: >lua
vim.lsp.enable('jqls')
Default config:
- cmd: >lua
{ "jq-lsp" }
- filetypes: >lua
{ "jq" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
jsonls
https://github.com/hrsh7th/vscode-langservers-extracted
vscode-json-language-server, a language server for JSON and JSON schema
`vscode-json-language-server` can be installed via `npm` >sh
npm i -g vscode-langservers-extracted
`vscode-json-language-server` only provides completions when snippet support is enabled. If you use Neovim older than v0.10 you need to enable completion, install a snippet plugin and add the following override to your language client capabilities during setup.
>lua
--Enable (broadcasting) snippet capability for completion
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities.textDocument.completion.completionItem.snippetSupport = true
vim.lsp.config('jsonls', {
capabilities = capabilities,
})
Snippet to enable the language server: >lua
vim.lsp.enable('jsonls')
Default config:
- cmd: >lua
{ "vscode-json-language-server", "--stdio" }
- filetypes: >lua
{ "json", "jsonc" }
- init_options: >lua
{
provideFormatter = true
}
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
jsonnet_ls
https://github.com/grafana/jsonnet-language-server
A Language Server Protocol (LSP) server for Jsonnet.
The language server can be installed with `go` >sh
go install github.com/grafana/jsonnet-language-server@latest
Snippet to enable the language server: >lua
vim.lsp.enable('jsonnet_ls')
Default config:
- cmd: >lua
{ "jsonnet-language-server" }
- filetypes: >lua
{ "jsonnet", "libsonnet" }
- root_markers: >lua
{ "jsonnetfile.json", ".git" }
<
------------------------------------------------------------------------------
julials
https://github.com/julia-vscode/julia-vscode
LanguageServer.jl, SymbolServer.jl and StaticLint.jl can be installed with `julia` and `Pkg` >sh
julia --project=~/.julia/environments/nvim-lspconfig -e 'using Pkg; Pkg.add("LanguageServer"); Pkg.add("SymbolServer"); Pkg.add("StaticLint")'
where `~/.julia/environments/nvim-lspconfig` is the location where
the default configuration expects LanguageServer.jl, SymbolServer.jl and StaticLint.jl to be installed.
To update an existing install, use the following command >sh
julia --project=~/.julia/environments/nvim-lspconfig -e 'using Pkg; Pkg.update()'
Note: In order to have LanguageServer.jl pick up installed packages or dependencies in a
Julia project, you must make sure that the project is instantiated >sh
julia --project=/path/to/my/project -e 'using Pkg; Pkg.instantiate()'
Note: The julia programming language searches for global environments within the `environments/`
folder of `$JULIA_DEPOT_PATH` entries. By default this simply `~/.julia/environments`
Snippet to enable the language server: >lua
vim.lsp.enable('julials')
Default config:
- cmd: >lua
{ "julia", "--startup-file=no", "--history-file=no", "-e", ' # Load LanguageServer.jl: attempt to load from ~/.julia/environments/nvim-lspconfig\n # with the regular load path as a fallback\n ls_install_path = joinpath(\n get(DEPOT_PATH, 1, joinpath(homedir(), ".julia")),\n "environments", "nvim-lspconfig"\n )\n pushfirst!(LOAD_PATH, ls_install_path)\n using LanguageServer, SymbolServer, StaticLint\n popfirst!(LOAD_PATH)\n depot_path = get(ENV, "JULIA_DEPOT_PATH", "")\n project_path = let\n dirname(something(\n ## 1. Finds an explicitly set project (JULIA_PROJECT)\n Base.load_path_expand((\n p = get(ENV, "JULIA_PROJECT", nothing);\n p === nothing ? nothing : isempty(p) ? nothing : p\n )),\n ## 2. Look for a Project.toml file in the current working directory,\n ## or parent directories, with $HOME as an upper boundary\n Base.current_project(),\n ## 3. First entry in the load path\n get(Base.load_path(), 1, nothing),\n ## 4. Fallback to default global environment,\n ## this is more or less unreachable\n Base.load_path_expand("@v#.#"),\n ))\n end\n @info "Running language server" VERSION pwd() project_path depot_path\n server = LanguageServer.LanguageServerInstance(stdin, stdout, project_path, depot_path)\n server.runlinter = true\n run(server)\n ' }
- filetypes: >lua
{ "julia" }
- on_attach (use "gF" to view): ../lsp/julials.lua:121
- root_markers: >lua
{ "Project.toml", "JuliaProject.toml" }
<
------------------------------------------------------------------------------
just
https://github.com/terror/just-lsp
`just-lsp` is an LSP for just built on top of the tree-sitter-just parser.
Snippet to enable the language server: >lua
vim.lsp.enable('just')
Default config:
- cmd: >lua
{ "just-lsp" }
- filetypes: >lua
{ "just" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
kcl
https://github.com/kcl-lang/kcl.nvim
Language server for the KCL configuration and policy language.
Snippet to enable the language server: >lua
vim.lsp.enable('kcl')
Default config:
- cmd: >lua
{ "kcl-language-server" }
- filetypes: >lua
{ "kcl" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
koka
https://koka-lang.github.io/koka/doc/index.html
Koka is a functional programming language with effect types and handlers.
Snippet to enable the language server: >lua
vim.lsp.enable('koka')
Default config:
- cmd: >lua
{ "koka", "--language-server", "--lsstdio" }
- filetypes: >lua
{ "koka" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
kotlin_language_server
A kotlin language server which was developed for internal usage and
released afterwards. Maintaining is not done by the original author,
but by fwcd.
It is built via gradle and developed on github.
Source and additional description:
https://github.com/fwcd/kotlin-language-server
This server requires vim to be aware of the kotlin-filetype.
You could refer for this capability to:
https://github.com/udalov/kotlin-vim (recommended)
Note that there is no LICENSE specified yet.
For faster startup, you can setup caching by specifying a storagePath
in the init_options. The default is your home directory.
Snippet to enable the language server: >lua
vim.lsp.enable('kotlin_language_server')
Default config:
- cmd: >lua
{ "kotlin-language-server" }
- filetypes: >lua
{ "kotlin" }
- init_options: >lua
{}
- root_markers: >lua
{ "settings.gradle", "settings.gradle.kts", "build.xml", "pom.xml", "build.gradle", "build.gradle.kts" }
<
------------------------------------------------------------------------------
kotlin_lsp
Pre-alpha official Kotlin support for Visual Studio Code and an implementation of Language Server Protocol for the Kotlin language.
The server is based on IntelliJ IDEA and the IntelliJ IDEA Kotlin Plugin implementation.
Snippet to enable the language server: >lua
vim.lsp.enable('kotlin_lsp')
Default config:
- cmd: >lua
{ "kotlin-lsp", "--stdio" }
- filetypes: >lua
{ "kotlin" }
- root_markers: >lua
{ "settings.gradle", "settings.gradle.kts", "pom.xml", "build.gradle", "build.gradle.kts", "workspace.json" }
<
------------------------------------------------------------------------------
kulala_ls
https://github.com/mistweaverco/kulala-ls
A minimal language server for HTTP syntax.
Snippet to enable the language server: >lua
vim.lsp.enable('kulala_ls')
Default config:
- cmd: >lua
{ "kulala-ls", "--stdio" }
- filetypes: >lua
{ "http" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
laravel_ls
https://github.com/laravel-ls/laravel-ls
`laravel-ls`, language server for laravel
The default `cmd` assumes that the `laravel-ls` binary can be found in `$PATH`.
Snippet to enable the language server: >lua
vim.lsp.enable('laravel_ls')
Default config:
- cmd: >lua
{ "laravel-ls" }
- filetypes: >lua
{ "php", "blade" }
- root_markers: >lua
{ "artisan" }
<
------------------------------------------------------------------------------
lean3ls
https://github.com/leanprover/lean-client-js/tree/master/lean-language-server
Lean installation instructions can be found
[here](https://leanprover-community.github.io/get_started.html#regular-install).
Once Lean is installed, you can install the Lean 3 language server by runnin >sh
npm install -g lean-language-server
Note: that if you're using [lean.nvim](https://github.com/Julian/lean.nvim),
that plugin fully handles the setup of the Lean language server,
and you shouldn't set up `lean3ls` both with it and `lspconfig`.
Snippet to enable the language server: >lua
vim.lsp.enable('lean3ls')
Default config:
- cmd: >lua
{ "lean-language-server", "--stdio", "--", "-M", "4096", "-T", "100000" }
- filetypes: >lua
{ "lean3" }
- offset_encoding: >lua
"utf-32"
- root_dir (use "gF" to view): ../lsp/lean3ls.lua:18
<
------------------------------------------------------------------------------
lelwel_ls
https://github.com/0x2a-42/lelwel
Language server for lelwel grammars.
You can install `lelwel-ls` via cargo >sh
cargo install --features="lsp" lelwel
Snippet to enable the language server: >lua
vim.lsp.enable('lelwel_ls')
Default config:
- cmd: >lua
{ "lelwel-ls" }
- filetypes: >lua
{ "llw" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
lemminx
https://github.com/eclipse/lemminx
The easiest way to install the server is to get a binary from https://github.com/redhat-developer/vscode-xml/releases and place it on your PATH.
NOTE to macOS users: Binaries from unidentified developers are blocked by default. If you trust the downloaded binary, run it once, cancel the prompt, then remove the binary from Gatekeeper quarantine with `xattr -d com.apple.quarantine lemminx`. It should now run without being blocked.
Snippet to enable the language server: >lua
vim.lsp.enable('lemminx')
Default config:
- cmd: >lua
{ "lemminx" }
- filetypes: >lua
{ "xml", "xsd", "xsl", "xslt", "svg" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
lexical
https://github.com/lexical-lsp/lexical
Lexical is a next-generation language server for the Elixir programming language.
To install from source, follow the [Detailed Installation Instructions](https://github.com/lexical-lsp/lexical/blob/main/pages/installation.md).
Ensure to point `cmd` to the generated `_build/dev/package/lexical/start_lexical.sh` executable.
Snippet to enable the language server: >lua
vim.lsp.enable('lexical')
Default config:
- cmd: >lua
{ "lexical" }
- filetypes: >lua
{ "elixir", "eelixir", "heex", "surface" }
- root_markers: >lua
{ "mix.exs", ".git" }
<
------------------------------------------------------------------------------
lsp_ai
https://github.com/SilasMarvin/lsp-ai
LSP-AI is an open source language server that serves as a backend for AI-powered functionality in your favorite code
editors. It offers features like in-editor chatting with LLMs and code completions.
You will need to provide configuration for the inference backends and models you want to use, as well as configure
completion/code actions. See the [wiki docs](https://github.com/SilasMarvin/lsp-ai/wiki/Configuration) and
[examples](https://github.com/SilasMarvin/lsp-ai/blob/main/examples/nvim) for more information.
Snippet to enable the language server: >lua
vim.lsp.enable('lsp_ai')
Default config:
- cmd: >lua
{ "lsp-ai" }
- filetypes: >lua
{}
- init_options: >lua
{
memory = {
file_store = vim.empty_dict()
},
models = vim.empty_dict()
}
<
------------------------------------------------------------------------------
ltex
https://github.com/valentjn/ltex-ls
LTeX Language Server: LSP language server for LanguageTool 🔍✔️ with support for LaTeX 🎓, Markdown 📝, and others
To install, download the latest [release](https://github.com/valentjn/ltex-ls/releases) and ensure `ltex-ls` is on your path.
This server accepts configuration via the `settings` key.
>lua
settings = {
ltex = {
language = "en-GB",
},
},
To support org files or R sweave, users can define a custom filetype autocommand (or use a plugin which defines these filetypes):
>lua
vim.cmd [[ autocmd BufRead,BufNewFile *.org set filetype=org ]]
Snippet to enable the language server: >lua
vim.lsp.enable('ltex')
Default config:
- cmd: >lua
{ "ltex-ls" }
- filetypes: >lua
{ "bib", "gitcommit", "markdown", "org", "plaintex", "rst", "rnoweb", "tex", "pandoc", "quarto", "rmd", "context", "html", "xhtml", "mail", "text" }
- get_language_id (use "gF" to view): ../lsp/ltex.lua:75
- root_markers: >lua
{ ".git" }
- settings: >lua
{
ltex = {
enabled = { "bibtex", "gitcommit", "markdown", "org", "tex", "restructuredtext", "rsweave", "latex", "quarto", "rmd", "context", "html", "xhtml", "mail", "plaintext" }
}
}
<
------------------------------------------------------------------------------
ltex_plus
https://github.com/ltex-plus/ltex-ls-plus
LTeX Language Server: LSP language server for LanguageTool 🔍✔️ with support for LaTeX 🎓, Markdown 📝, and others
To install, download the latest [release](https://github.com/ltex-plus/ltex-ls-plus) and ensure `ltex-ls-plus` is on your path.
This server accepts configuration via the `settings` key.
>lua
settings = {
ltex = {
language = "en-GB",
},
},
To support org files or R sweave, users can define a custom filetype autocommand (or use a plugin which defines these filetypes):
>lua
vim.cmd [[ autocmd BufRead,BufNewFile *.org set filetype=org ]]
Snippet to enable the language server: >lua
vim.lsp.enable('ltex_plus')
Default config:
- cmd: >lua
{ "ltex-ls-plus" }
- filetypes: >lua
{ "bib", "context", "gitcommit", "html", "markdown", "org", "pandoc", "plaintex", "quarto", "mail", "mdx", "rmd", "rnoweb", "rst", "tex", "text", "typst", "xhtml" }
- get_language_id (use "gF" to view): ../lsp/ltex_plus.lua:36
- root_markers: >lua
{ ".git" }
- settings: >lua
{
ltex = {
enabled = { "bib", "context", "gitcommit", "html", "markdown", "org", "pandoc", "plaintex", "quarto", "mail", "mdx", "rmd", "rnoweb", "rst", "tex", "latex", "text", "typst", "xhtml" }
}
}
<
------------------------------------------------------------------------------
lua_ls
https://github.com/luals/lua-language-server
Lua language server.
`lua-language-server` can be installed by following the instructions [here](https://luals.github.io/#neovim-install).
The default `cmd` assumes that the `lua-language-server` binary can be found in `$PATH`.
If you primarily use `lua-language-server` for Neovim, and want to provide completions,
analysis, and location handling for plugins on runtime path, you can use the following
settings.
>lua
vim.lsp.config('lua_ls', {
on_init = function(client)
if client.workspace_folders then
local path = client.workspace_folders[1].name
if
path ~= vim.fn.stdpath('config')
and (vim.uv.fs_stat(path .. '/.luarc.json') or vim.uv.fs_stat(path .. '/.luarc.jsonc'))
then
return
end
end
client.config.settings.Lua = vim.tbl_deep_extend('force', client.config.settings.Lua, {
runtime = {
-- Tell the language server which version of Lua you're using (most
-- likely LuaJIT in the case of Neovim)
version = 'LuaJIT',
-- Tell the language server how to find Lua modules same way as Neovim
-- (see `:h lua-module-load`)
path = {
'lua/?.lua',
'lua/?/init.lua',
},
},
-- Make the server aware of Neovim runtime files
workspace = {
checkThirdParty = false,
library = {
vim.env.VIMRUNTIME
-- Depending on the usage, you might want to add additional paths
-- here.
-- '${3rd}/luv/library'
-- '${3rd}/busted/library'
}
-- Or pull in all of 'runtimepath'.
-- NOTE: this is a lot slower and will cause issues when working on
-- your own configuration.
-- See https://github.com/neovim/nvim-lspconfig/issues/3189
-- library = {
-- vim.api.nvim_get_runtime_file('', true),
-- }
}
})
end,
settings = {
Lua = {}
}
})
See `lua-language-server`'s [documentation](https://luals.github.io/wiki/settings/) for an explanation of the above fields:
* [Lua.runtime.path](https://luals.github.io/wiki/settings/#runtimepath)
* [Lua.workspace.library](https://luals.github.io/wiki/settings/#workspacelibrary)
Snippet to enable the language server: >lua
vim.lsp.enable('lua_ls')
Default config:
- cmd: >lua
{ "lua-language-server" }
- filetypes: >lua
{ "lua" }
- root_markers: >lua
{ ".emmyrc.json", ".luarc.json", ".luarc.jsonc", ".luacheckrc", ".stylua.toml", "stylua.toml", "selene.toml", "selene.yml", ".git" }
- settings: >lua
{
Lua = {
codeLens = {
enable = true
},
hint = {
enable = true,
semicolon = "Disable"
}
}
}
<
------------------------------------------------------------------------------
luau_lsp
https://github.com/JohnnyMorganz/luau-lsp
Language server for the [Luau](https://luau-lang.org/) language.
`luau-lsp` can be installed by downloading one of the release assets available at https://github.com/JohnnyMorganz/luau-lsp.
You might also have to set up automatic filetype detection for Luau files, for example like so:
>vim
autocmd BufRead,BufNewFile *.luau setf luau
Snippet to enable the language server: >lua
vim.lsp.enable('luau_lsp')
Default config:
- cmd: >lua
{ "luau-lsp", "lsp" }
- filetypes: >lua
{ "luau" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
lwc_ls
https://github.com/forcedotcom/lightning-language-server/
Language server for Lightning Web Components.
For manual installation, utilize the official [NPM package](https://www.npmjs.com/package/@salesforce/lwc-language-server).
Then, configure `cmd` to run the Node script at the unpacked location:
>lua
vim.lsp.config('lwc_ls', {
cmd = {
'node',
'/path/to/node_modules/@salesforce/lwc-language-server/bin/lwc-language-server.js',
'--stdio'
}
})
Snippet to enable the language server: >lua
vim.lsp.enable('lwc_ls')
Default config:
- cmd: >lua
{ "lwc-language-server", "--stdio" }
- filetypes: >lua
{ "javascript", "html" }
- init_options: >lua
{
embeddedLanguages = {
javascript = true
}
}
- root_markers: >lua
{ "sfdx-project.json" }
<
------------------------------------------------------------------------------
m68k
https://github.com/grahambates/m68k-lsp
Language server for Motorola 68000 family assembly
`m68k-lsp-server` can be installed via `npm`:
>sh
npm install -g m68k-lsp-server
Ensure you are using the 68k asm syntax variant in Neovim.
>lua
vim.g.asmsyntax = 'asm68k'
Snippet to enable the language server: >lua
vim.lsp.enable('m68k')
Default config:
- cmd: >lua
{ "m68k-lsp-server", "--stdio" }
- filetypes: >lua
{ "asm68k" }
- root_markers: >lua
{ "Makefile", ".git" }
<
------------------------------------------------------------------------------
markdown_oxide
https://github.com/Feel-ix-343/markdown-oxide
Editor Agnostic PKM: you bring the text editor and we
bring the PKM.
Inspired by and compatible with Obsidian.
Check the readme to see how to properly setup.
Snippet to enable the language server: >lua
vim.lsp.enable('markdown_oxide')
Default config:
- cmd: >lua
{ "markdown-oxide" }
- filetypes: >lua
{ "markdown" }
- on_attach (use "gF" to view): ../lsp/markdown_oxide.lua:24
- root_markers: >lua
{ ".git", ".obsidian", ".moxide.toml" }
<
------------------------------------------------------------------------------
marko-js
https://github.com/marko-js/language-server
Using the Language Server Protocol to improve Marko's developer experience.
Can be installed via npm:>
npm i -g @marko/language-server
Snippet to enable the language server: >lua
vim.lsp.enable('marko-js')
Default config:
- cmd: >lua
{ "marko-language-server", "--stdio" }
- filetypes: >lua
{ "marko" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
marksman
https://github.com/artempyanykh/marksman
Marksman is a Markdown LSP server providing completion, cross-references, diagnostics, and more.
Marksman works on MacOS, Linux, and Windows and is distributed as a self-contained binary for each OS.
Pre-built binaries can be downloaded from https://github.com/artempyanykh/marksman/releases
Snippet to enable the language server: >lua
vim.lsp.enable('marksman')
Default config:
- cmd: >lua
{ "marksman", "server" }
- filetypes: >lua
{ "markdown", "markdown.mdx" }
- root_markers: >lua
{ ".marksman.toml", ".git" }
<
------------------------------------------------------------------------------
matlab_ls
https://github.com/mathworks/MATLAB-language-server
MATLAB® language server implements the Microsoft® Language Server Protocol for the MATLAB language.
Make sure to set `MATLAB.installPath` to your MATLAB path, e.g. >lua
settings = {
MATLAB = {
...
installPath = '/usr/local/MATLAB/R2023a',
...
},
},
Snippet to enable the language server: >lua
vim.lsp.enable('matlab_ls')
Default config:
- cmd: >lua
{ "matlab-language-server", "--stdio" }
- filetypes: >lua
{ "matlab" }
- root_dir (use "gF" to view): ../lsp/matlab_ls.lua:19
- settings: >lua
{
MATLAB = {
indexWorkspace = true,
installPath = "",
matlabConnectionTiming = "onStart",
telemetry = true
}
}
<
------------------------------------------------------------------------------
mdx_analyzer
https://github.com/mdx-js/mdx-analyzer
`mdx-analyzer`, a language server for MDX
Snippet to enable the language server: >lua
vim.lsp.enable('mdx_analyzer')
Default config:
- before_init (use "gF" to view): ../lsp/mdx_analyzer.lua:9
- cmd: >lua
{ "mdx-language-server", "--stdio" }
- filetypes: >lua
{ "mdx" }
- init_options: >lua
{
typescript = {}
}
- root_markers: >lua
{ "package.json" }
- settings: >lua
{}
<
------------------------------------------------------------------------------
mesonlsp
https://github.com/JCWasmx86/mesonlsp
An unofficial, unendorsed language server for meson written in C++
Snippet to enable the language server: >lua
vim.lsp.enable('mesonlsp')
Default config:
- cmd: >lua
{ "mesonlsp", "--lsp" }
- filetypes: >lua
{ "meson" }
- root_dir (use "gF" to view): ../lsp/mesonlsp.lua:32
<
------------------------------------------------------------------------------
metals
https://scalameta.org/metals/
Scala language server with rich IDE features.
See full instructions in the Metals documentation:
https://scalameta.org/metals/docs/editors/vim#using-an-alternative-lsp-client
Note: that if you're using [nvim-metals](https://github.com/scalameta/nvim-metals), that plugin fully handles the setup and installation of Metals, and you shouldn't set up Metals both with it and `lspconfig`.
To install Metals, make sure to have [coursier](https://get-coursier.io/docs/cli-installation) installed, and once you do you can install the latest Metals with `cs install metals`.
Snippet to enable the language server: >lua
vim.lsp.enable('metals')
Default config:
- capabilities: >lua
{
workspace = {
configuration = false
}
}
- cmd: >lua
{ "metals" }
- filetypes: >lua
{ "scala" }
- init_options: >lua
{
compilerOptions = {
snippetAutoIndent = false
},
isHttpEnabled = true,
statusBarProvider = "show-message"
}
- root_markers: >lua
{ "build.sbt", "build.sc", "build.gradle", "pom.xml" }
<
------------------------------------------------------------------------------
millet
https://github.com/azdavis/millet
Millet, a language server for Standard ML
To use with nvim:
1. Install a Rust toolchain: https://rustup.rs
2. Clone the repo
3. Run `cargo build --release --bin millet-ls`
4. Move `target/release/millet-ls` to somewhere on your $PATH as `millet`
Snippet to enable the language server: >lua
vim.lsp.enable('millet')
Default config:
- cmd: >lua
{ "millet" }
- filetypes: >lua
{ "sml" }
- root_markers: >lua
{ "millet.toml" }
<
------------------------------------------------------------------------------
mint
https://www.mint-lang.com
Install Mint using the [instructions](https://www.mint-lang.com/install).
The language server is included since version 0.12.0.
Snippet to enable the language server: >lua
vim.lsp.enable('mint')
Default config:
- cmd: >lua
{ "mint", "ls" }
- filetypes: >lua
{ "mint" }
- root_markers: >lua
{ "mint.json", ".git" }
<
------------------------------------------------------------------------------
mlir_lsp_server
https://mlir.llvm.org/docs/Tools/MLIRLSP/#mlir-lsp-language-server--mlir-lsp-server=
The Language Server for the LLVM MLIR language
`mlir-lsp-server` can be installed at the llvm-project repository (https://github.com/llvm/llvm-project)
Snippet to enable the language server: >lua
vim.lsp.enable('mlir_lsp_server')
Default config:
- cmd: >lua
{ "mlir-lsp-server" }
- filetypes: >lua
{ "mlir" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
mlir_pdll_lsp_server
https://mlir.llvm.org/docs/Tools/MLIRLSP/#pdll-lsp-language-server--mlir-pdll-lsp-server
The Language Server for the LLVM PDLL language
`mlir-pdll-lsp-server` can be installed at the llvm-project repository (https://github.com/llvm/llvm-project)
Snippet to enable the language server: >lua
vim.lsp.enable('mlir_pdll_lsp_server')
Default config:
- cmd: >lua
{ "mlir-pdll-lsp-server" }
- filetypes: >lua
{ "pdll" }
- root_markers: >lua
{ "pdll_compile_commands.yml", ".git" }
<
------------------------------------------------------------------------------
mm0_ls
https://github.com/digama0/mm0
Language Server for the metamath-zero theorem prover.
Requires [mm0-rs](https://github.com/digama0/mm0/tree/master/mm0-rs) to be installed
and available on the `PATH`.
Snippet to enable the language server: >lua
vim.lsp.enable('mm0_ls')
Default config:
- cmd: >lua
{ "mm0-rs", "server" }
- filetypes: >lua
{ "metamath-zero" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
mojo
https://github.com/modularml/mojo
`mojo-lsp-server` can be installed [via Modular](https://developer.modular.com/download)
Mojo is a new programming language that bridges the gap between research and production by combining Python syntax and ecosystem with systems programming and metaprogramming features.
Snippet to enable the language server: >lua
vim.lsp.enable('mojo')
Default config:
- cmd: >lua
{ "mojo-lsp-server" }
- filetypes: >lua
{ "mojo" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
motoko_lsp
https://github.com/dfinity/vscode-motoko
Language server for the Motoko programming language.
Snippet to enable the language server: >lua
vim.lsp.enable('motoko_lsp')
Default config:
- cmd: >lua
{ "motoko-lsp", "--stdio" }
- filetypes: >lua
{ "motoko" }
- init_options: >lua
{
formatter = "auto"
}
- root_markers: >lua
{ "dfx.json", ".git" }
<
------------------------------------------------------------------------------
move_analyzer
https://github.com/move-language/move/tree/main/language/move-analyzer
Language server for Move
The `move-analyzer` can be installed by running:
>
cargo install --git https://github.com/move-language/move move-analyzer
See [`move-analyzer`'s doc](https://github.com/move-language/move/blob/1b258a06e3c7d2bc9174578aac92cca3ac19de71/language/move-analyzer/editors/code/README.md#how-to-install) for details.
Snippet to enable the language server: >lua
vim.lsp.enable('move_analyzer')
Default config:
- cmd: >lua
{ "move-analyzer" }
- filetypes: >lua
{ "move" }
- root_markers: >lua
{ "Move.toml" }
<
------------------------------------------------------------------------------
msbuild_project_tools_server
https://github.com/tintoy/msbuild-project-tools-server/
MSBuild Project Tools Server can be installed by following the README.MD on the above repository.
Example config >lua
vim.lsp.config('msbuild_project_tools_server', {
cmd = {'dotnet', '/path/to/server/MSBuildProjectTools.LanguageServer.Host.dll'}
})
There's no builtin filetypes for msbuild files, would require some filetype aliases:
>lua
vim.filetype.add({
extension = {
props = 'msbuild',
tasks = 'msbuild',
targets = 'msbuild',
},
pattern = {
[ [[.*\..*proj]] ] = 'msbuild',
},
})
Optionally tell treesitter to treat `msbuild` as `xml` so you can get syntax highlighting if you have the treesitter-xml-parser installed.
>lua
vim.treesitter.language.register('xml', { 'msbuild' })
Snippet to enable the language server: >lua
vim.lsp.enable('msbuild_project_tools_server')
Default config:
- cmd: >lua
{ "dotnet", "MSBuildProjectTools.LanguageServer.Host.dll" }
- filetypes: >lua
{ "msbuild" }
- init_options: >lua
{}
- root_dir (use "gF" to view): ../lsp/msbuild_project_tools_server.lua:39
<
------------------------------------------------------------------------------
muon
https://muon.build
Snippet to enable the language server: >lua
vim.lsp.enable('muon')
Default config:
- cmd: >lua
{ "muon", "analyze", "lsp" }
- filetypes: >lua
{ "meson" }
- root_dir (use "gF" to view): ../lsp/muon.lua:6
<
------------------------------------------------------------------------------
mutt_ls
https://github.com/neomutt/mutt-language-server
A language server for (neo)mutt's muttrc. It can be installed via pip.
>sh
pip install mutt-language-server
Snippet to enable the language server: >lua
vim.lsp.enable('mutt_ls')
Default config:
- cmd: >lua
{ "mutt-language-server" }
- filetypes: >lua
{ "muttrc", "neomuttrc" }
- root_markers: >lua
{ ".git" }
- settings: >lua
{}
<
------------------------------------------------------------------------------
nelua_lsp
https://github.com/codehz/nelua-lsp
nelua-lsp is an experimental nelua language server.
You need [nelua.vim](https://github.com/stefanos82/nelua.vim/blob/main/ftdetect/nelua.vim) for nelua files to be recognized or add this to your config:
in vimscript >vimscript
au BufNewFile,BufRead *.nelua setf nelua
in lua >lua
vim.api.nvim_create_autocmd({ "BufNewFile", "BufRead" }, { pattern = { "*.nelua" }, command = "setf nelua"})
**By default, nelua-lsp doesn't have a `cmd` set.** This is because nvim-lspconfig does not make assumptions about your path. You must add the following to your init.vim or init.lua to set `cmd` to the absolute path ($HOME and ~ are not expanded) of the unzipped run script or binary.
>lua
vim.lsp.config('nelua_lsp', {
cmd = { "nelua", "-L", "/path/to/nelua-lsp/", "--script", "/path/to/nelua-lsp/nelua-lsp.lua" },
})
Snippet to enable the language server: >lua
vim.lsp.enable('nelua_lsp')
Default config:
- filetypes: >lua
{ "nelua" }
- root_markers: >lua
{ "Makefile", ".git", "*.nelua" }
<
------------------------------------------------------------------------------
neocmake
https://github.com/neocmakelsp/neocmakelsp
CMake LSP Implementation
Neovim does not currently include built-in snippets. `neocmakelsp` only provides completions when snippet support is enabled. To enable completion, install a snippet plugin and add the following override to your language client capabilities during setup.
>lua
--Enable (broadcasting) snippet capability for completion
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities.textDocument.completion.completionItem.snippetSupport = true
vim.lsp.config('neocmake', {
capabilities = capabilities,
})
Snippet to enable the language server: >lua
vim.lsp.enable('neocmake')
Default config:
- cmd: >lua
{ "neocmakelsp", "stdio" }
- filetypes: >lua
{ "cmake" }
- root_markers: >lua
{ ".git", "build", "cmake" }
<
------------------------------------------------------------------------------
nextflow_ls
https://github.com/nextflow-io/language-server
Requirements:
- Java 17+
`nextflow_ls` can be installed by following the instructions [here](https://github.com/nextflow-io/language-server#development).
If you have installed nextflow language server, you can set the `cmd` custom path as follow:
>lua
vim.lsp.config('nextflow_ls', {
cmd = { 'java', '-jar', 'nextflow-language-server-all.jar' },
filetypes = { 'nextflow' },
settings = {
nextflow = {
files = {
exclude = { '.git', '.nf-test', 'work' },
},
},
},
})
Snippet to enable the language server: >lua
vim.lsp.enable('nextflow_ls')
Default config:
- cmd: >lua
{ "java", "-jar", "nextflow-language-server-all.jar" }
- filetypes: >lua
{ "nextflow" }
- root_markers: >lua
{ "nextflow.config", ".git" }
- settings: >lua
{
nextflow = {
files = {
exclude = { ".git", ".nf-test", "work" }
}
}
}
<
------------------------------------------------------------------------------
nextls
https://github.com/elixir-tools/next-ls
**Please see the following [detailed instructions](https://www.elixir-tools.dev/docs/next-ls/installation/) for possible installation methods.**
Snippet to enable the language server: >lua
vim.lsp.enable('nextls')
Default config:
- cmd: >lua
{ "nextls", "--stdio" }
- filetypes: >lua
{ "elixir", "eelixir", "heex", "surface" }
- root_markers: >lua
{ "mix.exs", ".git" }
<
------------------------------------------------------------------------------
nginx_language_server
https://pypi.org/project/nginx-language-server/
`nginx-language-server` can be installed via pip:
>sh
pip install -U nginx-language-server
Snippet to enable the language server: >lua
vim.lsp.enable('nginx_language_server')
Default config:
- cmd: >lua
{ "nginx-language-server" }
- filetypes: >lua
{ "nginx" }
- root_markers: >lua
{ "nginx.conf", ".git" }
<
------------------------------------------------------------------------------
nickel_ls
Nickel Language Server
https://github.com/tweag/nickel
`nls` can be installed with nix, or cargo, from the Nickel repository >sh
git clone https://github.com/tweag/nickel.git
Nix >sh
cd nickel
nix-env -f . -i
cargo >sh
cd nickel/lsp/nls
cargo install --path .
In order to have lspconfig detect Nickel filetypes (a prerequisite for autostarting a server),
install the [Nickel vim plugin](https://github.com/nickel-lang/vim-nickel).
Snippet to enable the language server: >lua
vim.lsp.enable('nickel_ls')
Default config:
- cmd: >lua
{ "nls" }
- filetypes: >lua
{ "ncl", "nickel" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
nil_ls
https://github.com/oxalica/nil
A new language server for Nix Expression Language.
If you are using Nix with Flakes support, run `nix profile install github:oxalica/nil` to install.
Check the repository README for more information.
_See an example config at https://github.com/oxalica/nil/blob/main/dev/nvim-lsp.nix._
Snippet to enable the language server: >lua
vim.lsp.enable('nil_ls')
Default config:
- cmd: >lua
{ "nil" }
- filetypes: >lua
{ "nix" }
- root_markers: >lua
{ "flake.nix", ".git" }
<
------------------------------------------------------------------------------
nim_langserver
https://github.com/nim-lang/langserver
`nim-langserver` can be installed via the `nimble` package manager >sh
nimble install nimlangserver
Snippet to enable the language server: >lua
vim.lsp.enable('nim_langserver')
Default config:
- cmd: >lua
{ "nimlangserver" }
- filetypes: >lua
{ "nim" }
- root_dir (use "gF" to view): ../lsp/nim_langserver.lua:14
<
------------------------------------------------------------------------------
nimls
https://github.com/PMunch/nimlsp
`nimlsp` can be installed via the `nimble` package manager:
>sh
nimble install nimlsp
Snippet to enable the language server: >lua
vim.lsp.enable('nimls')
Default config:
- cmd: >lua
{ "nimlsp" }
- filetypes: >lua
{ "nim" }
- root_dir (use "gF" to view): ../lsp/nimls.lua:14
<
------------------------------------------------------------------------------
nixd
https://github.com/nix-community/nixd
Nix language server, based on nix libraries.
If you are using Nix with Flakes support, run `nix profile install github:nix-community/nixd` to install.
Check the repository README for more information.
Snippet to enable the language server: >lua
vim.lsp.enable('nixd')
Default config:
- cmd: >lua
{ "nixd" }
- filetypes: >lua
{ "nix" }
- root_markers: >lua
{ "flake.nix", ".git" }
<
------------------------------------------------------------------------------
nomad_lsp
https://github.com/juliosueiras/nomad-lsp
Written in Go, compilation is needed for `nomad_lsp` to be used. Please see the [original repository](https://github.com/juliosuieras/nomad-lsp).
Add the executable to your system or vim PATH and it will be set to go.
No configuration option is needed unless you choose not to add `nomad-lsp` executable to the PATH. You should know what you are doing if you choose so.
>lua
vim.lsp.enable('nomad_lsp')
However, a `hcl.nomad` or `nomad` filetype should be defined.
Description of your jobs should be written in `.nomad` files for the LSP client to configure the server's `root_dir` configuration option.
Snippet to enable the language server: >lua
vim.lsp.enable('nomad_lsp')
Default config:
- cmd: >lua
{ "nomad-lsp" }
- filetypes: >lua
{ "hcl.nomad", "nomad" }
- root_dir (use "gF" to view): ../lsp/nomad_lsp.lua:27
<
------------------------------------------------------------------------------
ntt
https://github.com/nokia/ntt
Installation instructions can be found [here](https://github.com/nokia/ntt#Install).
Can be configured by passing a "settings" object to vim.lsp.config('ntt') >lua
vim.lsp.config('ntt', {
settings = {
ntt = {
}
}
})
Snippet to enable the language server: >lua
vim.lsp.enable('ntt')
Default config:
- cmd: >lua
{ "ntt", "langserver" }
- filetypes: >lua
{ "ttcn" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
nushell
https://github.com/nushell/nushell
Nushell built-in language server.
Snippet to enable the language server: >lua
vim.lsp.enable('nushell')
Default config:
- cmd: >lua
{ "nu", "--lsp" }
- filetypes: >lua
{ "nu" }
- root_dir (use "gF" to view): ../lsp/nushell.lua:8
<
------------------------------------------------------------------------------
nxls
https://github.com/nrwl/nx-console/tree/master/apps/nxls
nxls, a language server for Nx Workspaces
`nxls` can be installed via `npm` >sh
npm i -g nxls
Snippet to enable the language server: >lua
vim.lsp.enable('nxls')
Default config:
- cmd: >lua
{ "nxls", "--stdio" }
- filetypes: >lua
{ "json", "jsonc" }
- root_markers: >lua
{ "nx.json", ".git" }
<
------------------------------------------------------------------------------
ocamllsp
https://github.com/ocaml/ocaml-lsp
`ocaml-lsp` can be installed as described in [installation guide](https://github.com/ocaml/ocaml-lsp#installation).
To install the lsp server in a particular opam switch >sh
opam install ocaml-lsp-server
Snippet to enable the language server: >lua
vim.lsp.enable('ocamllsp')
Default config:
- cmd: >lua
{ "ocamllsp" }
- filetypes: >lua
{ "ocaml", "menhir", "ocamlinterface", "ocamllex", "reason", "dune" }
- get_language_id (use "gF" to view): ../lsp/ocamllsp.lua:77
- on_attach (use "gF" to view): ../lsp/ocamllsp.lua:77
- root_markers: >lua
{ { "dune-project", "dune-workspace" }, { "*.opam", "opam", "esy.json", "package.json" }, { ".git" } }
<
------------------------------------------------------------------------------
ols
https://github.com/DanielGavin/ols
`Odin Language Server`.
Snippet to enable the language server: >lua
vim.lsp.enable('ols')
Default config:
- cmd: >lua
{ "ols" }
- filetypes: >lua
{ "odin" }
- root_dir (use "gF" to view): ../lsp/ols.lua:10
<
------------------------------------------------------------------------------
omnisharp
https://github.com/omnisharp/omnisharp-roslyn
OmniSharp server based on Roslyn workspaces
`omnisharp-roslyn` can be installed by downloading and extracting a release from [here](https://github.com/OmniSharp/omnisharp-roslyn/releases).
OmniSharp can also be built from source by following the instructions [here](https://github.com/omnisharp/omnisharp-roslyn#downloading-omnisharp).
OmniSharp requires the [dotnet-sdk](https://dotnet.microsoft.com/download) to be installed.
For `go_to_definition` to work fully, extended `textDocument/definition` handler is needed, for example see [omnisharp-extended-lsp.nvim](https://github.com/Hoffs/omnisharp-extended-lsp.nvim)
Snippet to enable the language server: >lua
vim.lsp.enable('omnisharp')
Default config:
- capabilities: >lua
{
workspace = {
workspaceFolders = false
}
}
- cmd: >lua
{ "omnisharp", "-z", "--hostPID", "12345", "DotNet:enablePackageRestore=false", "--encoding", "utf-8", "--languageserver" }
- filetypes: >lua
{ "cs", "vb" }
- init_options: >lua
{}
- root_dir (use "gF" to view): ../lsp/omnisharp.lua:18
- settings: >lua
{
FormattingOptions = {
EnableEditorConfigSupport = true
},
MsBuild = {},
RenameOptions = {},
RoslynExtensionsOptions = {},
Sdk = {
IncludePrereleases = true
}
}
<
------------------------------------------------------------------------------
opencl_ls
https://github.com/Galarius/opencl-language-server
Build instructions can be found [here](https://github.com/Galarius/opencl-language-server/blob/main/_dev/build.md).
Prebuilt binaries are available for Linux, macOS and Windows [here](https://github.com/Galarius/opencl-language-server/releases).
Snippet to enable the language server: >lua
vim.lsp.enable('opencl_ls')
Default config:
- cmd: >lua
{ "opencl-language-server" }
- filetypes: >lua
{ "opencl" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
openscad_ls
https://github.com/dzhu/openscad-language-server
A Language Server Protocol server for OpenSCAD
You can build and install `openscad-language-server` binary with `cargo` >sh
cargo install openscad-language-server
Vim does not have built-in syntax for the `openscad` filetype currently.
This can be added via an autocmd:
>lua
vim.cmd [[ autocmd BufRead,BufNewFile *.scad set filetype=openscad ]]
or by installing a filetype plugin such as https://github.com/sirtaj/vim-openscad
Snippet to enable the language server: >lua
vim.lsp.enable('openscad_ls')
Default config:
- cmd: >lua
{ "openscad-language-server" }
- filetypes: >lua
{ "openscad" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
openscad_lsp
https://github.com/Leathong/openscad-LSP
A Language Server Protocol server for OpenSCAD
You can build and install `openscad-lsp` binary with `cargo` >sh
cargo install openscad-lsp
Snippet to enable the language server: >lua
vim.lsp.enable('openscad_lsp')
Default config:
- cmd: >lua
{ "openscad-lsp", "--stdio" }
- filetypes: >lua
{ "openscad" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
oxlint
https://github.com/oxc-project/oxc
`oxc` is a linter / formatter for JavaScript / Typescript supporting over 500 rules from ESLint and its popular plugins
It can be installed via `npm`:
>sh
npm i -g oxlint
Snippet to enable the language server: >lua
vim.lsp.enable('oxlint')
Default config:
- cmd: >lua
{ "oxc_language_server" }
- filetypes: >lua
{ "javascript", "javascriptreact", "javascript.jsx", "typescript", "typescriptreact", "typescript.tsx" }
- root_dir (use "gF" to view): ../lsp/oxlint.lua:15
- `workspace_required` : `true`
<
------------------------------------------------------------------------------
pact_ls
https://github.com/kadena-io/pact-lsp
The Pact language server
Snippet to enable the language server: >lua
vim.lsp.enable('pact_ls')
Default config:
- cmd: >lua
{ "pact-lsp" }
- filetypes: >lua
{ "pact" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
pasls
https://github.com/genericptr/pascal-language-server
An LSP server implementation for Pascal variants that are supported by Free Pascal, including Object Pascal. It uses CodeTools from Lazarus as backend.
First set `cmd` to the Pascal lsp binary.
Customization options are passed to pasls as environment variables for example in your `.bashrc` >bash
export FPCDIR='/usr/lib/fpc/src' # FPC source directory (This is the only required option for the server to work).
export PP='/usr/lib/fpc/3.2.2/ppcx64' # Path to the Free Pascal compiler executable.
export LAZARUSDIR='/usr/lib/lazarus' # Path to the Lazarus sources.
export FPCTARGET='' # Target operating system for cross compiling.
export FPCTARGETCPU='x86_64' # Target CPU for cross compiling.
Snippet to enable the language server: >lua
vim.lsp.enable('pasls')
Default config:
- cmd: >lua
{ "pasls" }
- filetypes: >lua
{ "pascal" }
- root_dir (use "gF" to view): ../lsp/pasls.lua:21
<
------------------------------------------------------------------------------
pbls
https://git.sr.ht/~rrc/pbls
Prerequisites: Ensure protoc is on your $PATH.
`pbls` can be installed via `cargo install` >sh
cargo install --git https://git.sr.ht/~rrc/pbls
pbls is a Language Server for protobuf
Snippet to enable the language server: >lua
vim.lsp.enable('pbls')
Default config:
- cmd: >lua
{ "pbls" }
- filetypes: >lua
{ "proto" }
- root_markers: >lua
{ ".pbls.toml", ".git" }
<
------------------------------------------------------------------------------
perlls
https://github.com/richterger/Perl-LanguageServer/tree/master/clients/vscode/perl
`Perl-LanguageServer`, a language server for Perl.
To use the language server, ensure that you have Perl::LanguageServer installed and perl command is on your path.
Snippet to enable the language server: >lua
vim.lsp.enable('perlls')
Default config:
- cmd: >lua
{ "perl", "-MPerl::LanguageServer", "-e", "Perl::LanguageServer::run", "--", "--port 13603", "--nostdio 0" }
- filetypes: >lua
{ "perl" }
- root_markers: >lua
{ ".git" }
- settings: >lua
{
perl = {
fileFilter = { ".pm", ".pl" },
ignoreDirs = ".git",
perlCmd = "perl",
perlInc = " "
}
}
<
------------------------------------------------------------------------------
perlnavigator
https://github.com/bscan/PerlNavigator
A Perl language server. It can be installed via npm:
>sh
npm i -g perlnavigator-server
At minimum, you will need `perl` in your path. If you want to use a non-standard `perl` you will need to set your configuration like so >lua
settings = {
perlnavigator = {
perlPath = '/some/odd/location/my-perl'
}
}
The `contributes.configuration.properties` section of `perlnavigator`'s `package.json` has all available configuration settings. All
settings have a reasonable default, but, at minimum, you may want to point `perlnavigator` at your `perltidy` and `perlcritic` configurations.
Snippet to enable the language server: >lua
vim.lsp.enable('perlnavigator')
Default config:
- cmd: >lua
{ "perlnavigator" }
- filetypes: >lua
{ "perl" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
perlpls
https://github.com/FractalBoy/perl-language-server
https://metacpan.org/pod/PLS
`PLS`, another language server for Perl.
To use the language server, ensure that you have PLS installed and that it is in your path
Snippet to enable the language server: >lua
vim.lsp.enable('perlpls')
Default config:
- cmd: >lua
{ "pls" }
- filetypes: >lua
{ "perl" }
- root_markers: >lua
{ ".git" }
- settings: >lua
{
perl = {
perlcritic = {
enabled = false
},
syntax = {
enabled = true
}
}
}
<
------------------------------------------------------------------------------
pest_ls
https://github.com/pest-parser/pest-ide-tools
Language server for pest grammars.
Snippet to enable the language server: >lua
vim.lsp.enable('pest_ls')
Default config:
- cmd: >lua
{ "pest-language-server" }
- filetypes: >lua
{ "pest" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
phan
https://github.com/phan/phan
Installation: https://github.com/phan/phan#getting-started
Snippet to enable the language server: >lua
vim.lsp.enable('phan')
Default config:
- cmd: >lua
{ "phan", "-m", "json", "--no-color", "--no-progress-bar", "-x", "-u", "-S", "--language-server-on-stdin", "--allow-polyfill-parser" }
- filetypes: >lua
{ "php" }
- root_dir (use "gF" to view): ../lsp/phan.lua:21
<
------------------------------------------------------------------------------
phpactor
https://github.com/phpactor/phpactor
Installation: https://phpactor.readthedocs.io/en/master/usage/standalone.html#global-installation
Snippet to enable the language server: >lua
vim.lsp.enable('phpactor')
Default config:
- cmd: >lua
{ "phpactor", "language-server" }
- filetypes: >lua
{ "php" }
- root_markers: >lua
{ ".git", "composer.json", ".phpactor.json", ".phpactor.yml" }
- `workspace_required` : `true`
<
------------------------------------------------------------------------------
phptools
https://www.devsense.com/
`devsense-php-ls` can be installed via `npm` >sh
npm install -g devsense-php-ls
>lua
-- See https://www.npmjs.com/package/devsense-php-ls
init_options = {
}
-- See https://docs.devsense.com/vscode/configuration/
settings = {
php = {
};
}
Snippet to enable the language server: >lua
vim.lsp.enable('phptools')
Default config:
- cmd: >lua
{ "devsense-php-ls", "--stdio" }
- filetypes: >lua
{ "php" }
- init_options: >lua
{
["0"] = "{}"
}
- root_dir (use "gF" to view): ../lsp/phptools.lua:22
<
------------------------------------------------------------------------------
pico8_ls
https://github.com/japhib/pico8-ls
Full language support for the PICO-8 dialect of Lua.
Snippet to enable the language server: >lua
vim.lsp.enable('pico8_ls')
Default config:
- cmd: >lua
{ "pico8-ls", "--stdio" }
- filetypes: >lua
{ "p8" }
- root_dir (use "gF" to view): ../lsp/pico8_ls.lua:10
- settings: >lua
{}
<
------------------------------------------------------------------------------
please
https://github.com/thought-machine/please
High-performance extensible build system for reproducible multi-language builds.
The `plz` binary will automatically install the LSP for you on first run
Snippet to enable the language server: >lua
vim.lsp.enable('please')
Default config:
- cmd: >lua
{ "plz", "tool", "lps" }
- filetypes: >lua
{ "bzl" }
- root_markers: >lua
{ ".plzconfig" }
<
------------------------------------------------------------------------------
pli
`pli_language_server` is a language server for the PL/I language used on IBM SystemZ mainframes.
To learn how to configure the PL/I language server, see the [PL/I Language Support documentation](https://github.com/zowe/zowe-pli-language-support).
Snippet to enable the language server: >lua
vim.lsp.enable('pli')
Default config:
- cmd: >lua
{ "pli_language_server" }
- filetypes: >lua
{ "pli" }
- root_markers: >lua
{ ".pliplugin" }
<
------------------------------------------------------------------------------
poryscript_pls
https://github.com/huderlem/poryscript-pls
Language server for poryscript (a high level scripting language for GBA-era Pokémon decompilation projects)
Snippet to enable the language server: >lua
vim.lsp.enable('poryscript_pls')
Default config:
- cmd: >lua
{ "poryscript-pls" }
- filetypes: >lua
{ "pory" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
postgres_lsp
https://pg-language-server.com
A collection of language tools and a Language Server Protocol (LSP) implementation for Postgres, focusing on developer experience and reliable SQL tooling.
Snippet to enable the language server: >lua
vim.lsp.enable('postgres_lsp')
Default config:
- cmd: >lua
{ "postgres-language-server", "lsp-proxy" }
- filetypes: >lua
{ "sql" }
- root_markers: >lua
{ "postgres-language-server.jsonc" }
- `workspace_required` : `true`
<
------------------------------------------------------------------------------
powershell_es
https://github.com/PowerShell/PowerShellEditorServices
Language server for PowerShell.
To install, download and extract PowerShellEditorServices.zip
from the [releases](https://github.com/PowerShell/PowerShellEditorServices/releases).
To configure the language server, set the property `bundle_path` to the root
of the extracted PowerShellEditorServices.zip.
>lua
vim.lsp.config('powershell_es', {
bundle_path = 'c:/w/PowerShellEditorServices',
})
By default the language server is started in `pwsh` (PowerShell Core). This can be changed by specifying `shell`.
>lua
vim.lsp.config('powershell_es', {
bundle_path = 'c:/w/PowerShellEditorServices',
shell = 'powershell.exe',
})
Note that the execution policy needs to be set to `Unrestricted` for the languageserver run under PowerShell
If necessary, specific `cmd` can be defined instead of `bundle_path`.
See [PowerShellEditorServices](https://github.com/PowerShell/PowerShellEditorServices#standard-input-and-output)
to learn more.
>lua
vim.lsp.config('powershell_es', {
cmd = {'pwsh', '-NoLogo', '-NoProfile', '-Command', "c:/PSES/Start-EditorServices.ps1 ..."},
})
Snippet to enable the language server: >lua
vim.lsp.enable('powershell_es')
Default config:
- cmd (use "gF" to view): ../lsp/powershell_es.lua:40
- filetypes: >lua
{ "ps1" }
- root_markers: >lua
{ "PSScriptAnalyzerSettings.psd1", ".git" }
<
------------------------------------------------------------------------------
prismals
Language Server for the Prisma JavaScript and TypeScript ORM
`@prisma/language-server` can be installed via np >sh
npm install -g @prisma/language-server
Snippet to enable the language server: >lua
vim.lsp.enable('prismals')
Default config:
- cmd: >lua
{ "prisma-language-server", "--stdio" }
- filetypes: >lua
{ "prisma" }
- root_markers: >lua
{ ".git", "package.json" }
- settings: >lua
{
prisma = {
prismaFmtBinPath = ""
}
}
<
------------------------------------------------------------------------------
prolog_ls
https://github.com/jamesnvc/lsp_server
Language Server Protocol server for SWI-Prolog
Snippet to enable the language server: >lua
vim.lsp.enable('prolog_ls')
Default config:
- cmd: >lua
{ "swipl", "-g", "use_module(library(lsp_server)).", "-g", "lsp_server:main", "-t", "halt", "--", "stdio" }
- filetypes: >lua
{ "prolog" }
- root_markers: >lua
{ "pack.pl" }
<
------------------------------------------------------------------------------
prosemd_lsp
https://github.com/kitten/prosemd-lsp
An experimental LSP for Markdown.
Please see the manual installation instructions: https://github.com/kitten/prosemd-lsp#manual-installation
Snippet to enable the language server: >lua
vim.lsp.enable('prosemd_lsp')
Default config:
- cmd: >lua
{ "prosemd-lsp", "--stdio" }
- filetypes: >lua
{ "markdown" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
protols
https://github.com/coder3101/protols
`protols` can be installed via `cargo` >sh
cargo install protols
A Language Server for proto3 files. It uses tree-sitter and runs in single file mode.
Snippet to enable the language server: >lua
vim.lsp.enable('protols')
Default config:
- cmd: >lua
{ "protols" }
- filetypes: >lua
{ "proto" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
psalm
https://github.com/vimeo/psalm
Can be installed with composer >sh
composer global require vimeo/psalm
Snippet to enable the language server: >lua
vim.lsp.enable('psalm')
Default config:
- cmd: >lua
{ "psalm", "--language-server" }
- filetypes: >lua
{ "php" }
- root_markers: >lua
{ "psalm.xml", "psalm.xml.dist" }
<
------------------------------------------------------------------------------
pug
https://github.com/opa-oz/pug-lsp
An implementation of the Language Protocol Server for [Pug.js](http://pugjs.org)
PugLSP can be installed via `go install github.com/opa-oz/pug-lsp@latest`, or manually downloaded from [releases page](https://github.com/opa-oz/pug-lsp/releases)
Snippet to enable the language server: >lua
vim.lsp.enable('pug')
Default config:
- cmd: >lua
{ "pug-lsp" }
- filetypes: >lua
{ "pug" }
- root_markers: >lua
{ "package.json" }
<
------------------------------------------------------------------------------
puppet
LSP server for Puppet.
Installation:
- Clone the editor-services repository:
https://github.com/puppetlabs/puppet-editor-services
- Navigate into that directory and run: `bundle install`
- Install the 'puppet-lint' gem: `gem install puppet-lint`
- Add that repository to $PATH.
- Ensure you can run `puppet-languageserver` from outside the editor-services directory.
Snippet to enable the language server: >lua
vim.lsp.enable('puppet')
Default config:
- cmd: >lua
{ "puppet-languageserver", "--stdio" }
- filetypes: >lua
{ "puppet" }
- root_markers: >lua
{ "manifests", ".puppet-lint.rc", "hiera.yaml", ".git" }
<
------------------------------------------------------------------------------
purescriptls
https://github.com/nwolverson/purescript-language-server
The `purescript-language-server` can be added to your project and `$PATH` via
* JavaScript package manager such as npm, pnpm, Yarn, et al.
* Nix under the `nodePackages` and `nodePackages_latest` package sets
Snippet to enable the language server: >lua
vim.lsp.enable('purescriptls')
Default config:
- cmd: >lua
{ "purescript-language-server", "--stdio" }
- filetypes: >lua
{ "purescript" }
- root_markers: >lua
{ "bower.json", "flake.nix", "psc-package.json", "shell.nix", "spago.dhall", "spago.yaml" }
<
------------------------------------------------------------------------------
pylsp
https://github.com/python-lsp/python-lsp-server
A Python 3.6+ implementation of the Language Server Protocol.
See the [project's README](https://github.com/python-lsp/python-lsp-server) for installation instructions.
Configuration options are documented [here](https://github.com/python-lsp/python-lsp-server/blob/develop/CONFIGURATION.md).
In order to configure an option, it must be translated to a nested Lua table and included in the `settings` argument to the `config('pylsp', {})` function.
For example, in order to set the `pylsp.plugins.pycodestyle.ignore` option >lua
vim.lsp.config('pylsp', {
settings = {
pylsp = {
plugins = {
pycodestyle = {
ignore = {'W391'},
maxLineLength = 100
}
}
}
}
})
Note: This is a community fork of `pyls`.
Snippet to enable the language server: >lua
vim.lsp.enable('pylsp')
Default config:
- cmd: >lua
{ "pylsp" }
- filetypes: >lua
{ "python" }
- root_markers: >lua
{ "pyproject.toml", "setup.py", "setup.cfg", "requirements.txt", "Pipfile", ".git" }
<
------------------------------------------------------------------------------
pylyzer
https://github.com/mtshiba/pylyzer
`pylyzer`, a fast static code analyzer & language server for Python.
`pylyzer` requires Erg as dependency, and finds it via `ERG_PATH` environment variable.
This config sets `ERG_PATH="~/.erg"`. Set `cmd_env` if you want to change it.
To install Erg, simply extract tarball/zip from [Erg releases](https://github.com/erg-lang/erg/releases/latest)
to the the path where you want to install it, e.g. `~/.erg`.
Snippet to enable the language server: >lua
vim.lsp.enable('pylyzer')
Default config:
- cmd: >lua
{ "pylyzer", "--server" }
- cmd_env: >lua
{
ERG_PATH = "/home/runner/.erg"
}
- filetypes: >lua
{ "python" }
- root_markers: >lua
{ "setup.py", "tox.ini", "requirements.txt", "Pipfile", "pyproject.toml", ".git" }
- settings: >lua
{
python = {
checkOnType = false,
diagnostics = true,
inlayHints = true,
smartCompletion = true
}
}
<
------------------------------------------------------------------------------
pyre
https://pyre-check.org/
`pyre` a static type checker for Python 3.
`pyre` offers an extremely limited featureset. It currently only supports diagnostics,
which are triggered on save.
Do not report issues for missing features in `pyre` to `lspconfig`.
Snippet to enable the language server: >lua
vim.lsp.enable('pyre')
Default config:
- cmd: >lua
{ "pyre", "persistent" }
- filetypes: >lua
{ "python" }
- root_markers: >lua
{ ".pyre_configuration" }
<
------------------------------------------------------------------------------
pyrefly
https://pyrefly.org/
`pyrefly`, a faster Python type checker written in Rust.
`pyrefly` is still in development, so please report any errors to
our issues page at https://github.com/facebook/pyrefly/issues.
Snippet to enable the language server: >lua
vim.lsp.enable('pyrefly')
Default config:
- cmd: >lua
{ "pyrefly", "lsp" }
- filetypes: >lua
{ "python" }
- on_exit (use "gF" to view): ../lsp/pyrefly.lua:11
- root_markers: >lua
{ "pyrefly.toml", "pyproject.toml", "setup.py", "setup.cfg", "requirements.txt", "Pipfile", ".git" }
<
------------------------------------------------------------------------------
pyright
https://github.com/microsoft/pyright
`pyright`, a static type checker and language server for python
Snippet to enable the language server: >lua
vim.lsp.enable('pyright')
Default config:
- cmd: >lua
{ "pyright-langserver", "--stdio" }
- filetypes: >lua
{ "python" }
- on_attach (use "gF" to view): ../lsp/pyright.lua:25
- root_markers: >lua
{ "pyrightconfig.json", "pyproject.toml", "setup.py", "setup.cfg", "requirements.txt", "Pipfile", ".git" }
- settings: >lua
{
python = {
analysis = {
autoSearchPaths = true,
diagnosticMode = "openFilesOnly",
useLibraryCodeForTypes = true
}
}
}
<
------------------------------------------------------------------------------
qmlls
https://doc.qt.io/qt-6/qtqml-tooling-qmlls.html
> QML Language Server is a tool shipped with Qt that helps you write code in your favorite (LSP-supporting) editor.
Source in the [QtDeclarative repository](https://code.qt.io/cgit/qt/qtdeclarative.git/)
Snippet to enable the language server: >lua
vim.lsp.enable('qmlls')
Default config:
- cmd: >lua
{ "qmlls" }
- filetypes: >lua
{ "qml", "qmljs" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
quick_lint_js
https://quick-lint-js.com/
quick-lint-js finds bugs in JavaScript programs.
See installation [instructions](https://quick-lint-js.com/install/)
Snippet to enable the language server: >lua
vim.lsp.enable('quick_lint_js')
Default config:
- cmd: >lua
{ "quick-lint-js", "--lsp-server" }
- filetypes: >lua
{ "javascript", "typescript" }
- root_markers: >lua
{ "package.json", "jsconfig.json", ".git" }
<
------------------------------------------------------------------------------
r_language_server
[languageserver](https://github.com/REditorSupport/languageserver) is an
implementation of the Microsoft's Language Server Protocol for the R
language.
It is released on CRAN and can be easily installed by
>r
install.packages("languageserver")
Snippet to enable the language server: >lua
vim.lsp.enable('r_language_server')
Default config:
- cmd: >lua
{ "R", "--no-echo", "-e", "languageserver::run()" }
- filetypes: >lua
{ "r", "rmd", "quarto" }
- root_dir (use "gF" to view): ../lsp/r_language_server.lua:14
<
------------------------------------------------------------------------------
racket_langserver
[https://github.com/jeapostrophe/racket-langserver](https://github.com/jeapostrophe/racket-langserver)
The Racket language server. This project seeks to use
[DrRacket](https://github.com/racket/drracket)'s public API to provide
functionality that mimics DrRacket's code tools as closely as possible.
Install via `raco`: `raco pkg install racket-langserver`
Snippet to enable the language server: >lua
vim.lsp.enable('racket_langserver')
Default config:
- cmd: >lua
{ "racket", "--lib", "racket-langserver" }
- filetypes: >lua
{ "racket", "scheme" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
raku_navigator
https://github.com/bscan/RakuNavigator
A Raku language server
**By default, raku_navigator doesn't have a `cmd` set.** This is because nvim-lspconfig does not make assumptions about your path.
You have to install the language server manually.
Clone the RakuNavigator repo, install based on the [instructions](https://github.com/bscan/raku_Navigator#installation-for-other-editors),
and point `cmd` to `server.js` inside the `server/out` directory >lua
cmd = {'node', '<path_to_repo>/server/out/server.js', '--stdio'}
At minimum, you will need `raku` in your path. If you want to use a non-standard `raku` you will need to set your configuration like so >lua
settings = {
raku_navigator = {
rakuPath = '/some/odd/location/my-raku'
}
}
The `contributes.configuration.properties` section of `raku_navigator`'s `package.json` has all available configuration settings. All
settings have a reasonable default, but, at minimum, you may want to point `raku_navigator` at your `raku_tidy` and `raku_critic` configurations.
Snippet to enable the language server: >lua
vim.lsp.enable('raku_navigator')
Default config:
- cmd: >lua
{}
- filetypes: >lua
{ "raku" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
reason_ls
Reason language server
You can install reason language server from [reason-language-server](https://github.com/jaredly/reason-language-server) repository.
Snippet to enable the language server: >lua
vim.lsp.enable('reason_ls')
Default config:
- cmd: >lua
{ "reason-language-server" }
- filetypes: >lua
{ "reason" }
- root_markers: >lua
{ "bsconfig.json", ".git" }
<
------------------------------------------------------------------------------
regal
https://github.com/StyraInc/regal
A linter for Rego, with support for running as an LSP server.
`regal` can be installed by running >sh
go install github.com/StyraInc/regal@latest
Snippet to enable the language server: >lua
vim.lsp.enable('regal')
Default config:
- cmd: >lua
{ "regal", "language-server" }
- filetypes: >lua
{ "rego" }
- root_dir (use "gF" to view): ../lsp/regal.lua:15
<
------------------------------------------------------------------------------
regols
https://github.com/kitagry/regols
OPA Rego language server.
`regols` can be installed by running >sh
go install github.com/kitagry/regols@latest
Snippet to enable the language server: >lua
vim.lsp.enable('regols')
Default config:
- cmd: >lua
{ "regols" }
- filetypes: >lua
{ "rego" }
- root_dir (use "gF" to view): ../lsp/regols.lua:15
<
------------------------------------------------------------------------------
remark_ls
https://github.com/remarkjs/remark-language-server
`remark-language-server` can be installed via `npm` >sh
npm install -g remark-language-server
`remark-language-server` uses the same
[configuration files](https://github.com/remarkjs/remark/tree/main/packages/remark-cli#example-config-files-json-yaml-js)
as `remark-cli`.
This uses a plugin based system. Each plugin needs to be installed locally using `npm` or `yarn`.
For example, given the following `.remarkrc.json`:
>json
{
"presets": [
"remark-preset-lint-recommended"
]
}
`remark-preset-lint-recommended` needs to be installed in the local project:
>sh
npm install remark-preset-lint-recommended
Snippet to enable the language server: >lua
vim.lsp.enable('remark_ls')
Default config:
- cmd: >lua
{ "remark-language-server", "--stdio" }
- filetypes: >lua
{ "markdown" }
- root_markers: >lua
{ ".remarkrc", ".remarkrc.json", ".remarkrc.js", ".remarkrc.cjs", ".remarkrc.mjs", ".remarkrc.yml", ".remarkrc.yaml", ".remarkignore" }
<
------------------------------------------------------------------------------
rescriptls
https://github.com/rescript-lang/rescript-vscode/tree/master/server
ReScript Language Server can be installed via npm >sh
npm install -g @rescript/language-server
See [package.json](https://github.com/rescript-lang/rescript-vscode/blob/master/package.json#L139)
for init_options supported.
For example, in order to disable the `inlayHints` option >lua
vim.lsp.config('rescriptls', {
settings = {
rescript = {
settings = {
inlayHints = { enable = false },
},
},
})
}
Detect file changes: While using @rescript/language-server >= 1.63.0 you have to detect file changes by registering the didChangeWatchedFiles hook >lua
capabilities = {
workspace = {
didChangeWatchedFiles = {
dynamicRegistration = true,
},
},
}
Snippet to enable the language server: >lua
vim.lsp.enable('rescriptls')
Default config:
- cmd: >lua
{ "rescript-language-server", "--stdio" }
- filetypes: >lua
{ "rescript" }
- init_options: >lua
{
extensionConfiguration = {
allowBuiltInFormatter = true,
askToStartBuild = false,
cache = {
projectConfig = {
enabled = true
}
},
codeLens = true,
incrementalTypechecking = {
acrossFiles = true,
enabled = true
},
inlayHints = {
enable = true
}
}
}
- root_markers: >lua
{ "bsconfig.json", "rescript.json", ".git" }
- settings: >lua
{}
<
------------------------------------------------------------------------------
rls
https://github.com/rust-lang/rls
rls, a language server for Rust
See https://github.com/rust-lang/rls#setup to setup rls itself.
See https://github.com/rust-lang/rls#configuration for rls-specific settings.
All settings listed on the rls configuration section of the readme
must be set under settings.rust as follows:
>lua
vim.lsp.config('rls', {
settings = {
rust = {
unstable_features = true,
build_on_save = false,
all_features = true,
},
},
})
If you want to use rls for a particular build, eg nightly, set cmd as follows:
>lua
cmd = {"rustup", "run", "nightly", "rls"}
Snippet to enable the language server: >lua
vim.lsp.enable('rls')
Default config:
- cmd: >lua
{ "rls" }
- filetypes: >lua
{ "rust" }
- root_markers: >lua
{ "Cargo.toml" }
<
------------------------------------------------------------------------------
rnix
https://github.com/nix-community/rnix-lsp
A language server for Nix providing basic completion and formatting via nixpkgs-fmt.
To install manually, run `cargo install rnix-lsp`. If you are using nix, rnix-lsp is in nixpkgs.
This server accepts configuration via the `settings` key.
Snippet to enable the language server: >lua
vim.lsp.enable('rnix')
Default config:
- cmd: >lua
{ "rnix-lsp" }
- filetypes: >lua
{ "nix" }
- init_options: >lua
{}
- root_dir (use "gF" to view): ../lsp/rnix.lua:12
- settings: >lua
{}
<
------------------------------------------------------------------------------
robotcode
https://robotcode.io
RobotCode - Language Server Protocol implementation for Robot Framework.
Snippet to enable the language server: >lua
vim.lsp.enable('robotcode')
Default config:
- cmd: >lua
{ "robotcode", "language-server" }
- filetypes: >lua
{ "robot", "resource" }
- get_language_id (use "gF" to view): ../lsp/robotcode.lua:8
- root_markers: >lua
{ "robot.toml", "pyproject.toml", "Pipfile", ".git" }
<
------------------------------------------------------------------------------
robotframework_ls
https://github.com/robocorp/robotframework-lsp
Language Server Protocol implementation for Robot Framework.
Snippet to enable the language server: >lua
vim.lsp.enable('robotframework_ls')
Default config:
- cmd: >lua
{ "robotframework_ls" }
- filetypes: >lua
{ "robot" }
- root_markers: >lua
{ "robotidy.toml", "pyproject.toml", "conda.yaml", "robot.yaml", ".git" }
<
------------------------------------------------------------------------------
roc_ls
https://github.com/roc-lang/roc/tree/main/crates/language_server#roc_language_server
The built-in language server for the Roc programming language.
[Installation](https://github.com/roc-lang/roc/tree/main/crates/language_server#installing)
Snippet to enable the language server: >lua
vim.lsp.enable('roc_ls')
Default config:
- cmd: >lua
{ "roc_language_server" }
- filetypes: >lua
{ "roc" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
rome
https://rome.tools
Language server for the Rome Frontend Toolchain.
(Unmaintained, use [Biome](https://biomejs.dev/blog/annoucing-biome) instead.)
>sh
npm install [-g] rome
Snippet to enable the language server: >lua
vim.lsp.enable('rome')
Default config:
- cmd: >lua
{ "rome", "lsp-proxy" }
- filetypes: >lua
{ "javascript", "javascriptreact", "json", "typescript", "typescript.tsx", "typescriptreact" }
- root_markers: >lua
{ "package.json", "node_modules", ".git" }
<
------------------------------------------------------------------------------
roslyn_ls
https://github.com/dotnet/roslyn
To install the server, compile from source or download as nuget package.
Go to `https://dev.azure.com/azure-public/vside/_artifacts/feed/vs-impl/NuGet/Microsoft.CodeAnalysis.LanguageServer.<platform>/overview`
replace `<platform>` with one of the following `linux-x64`, `osx-x64`, `win-x64`, `neutral` (for more info on the download location see https://github.com/dotnet/roslyn/issues/71474#issuecomment-2177303207).
Download and extract it (nuget's are zip files).
- if you chose `neutral` nuget version, then you have to change the `cmd` like so:
cmd = {
'dotnet',
'<my_folder>/Microsoft.CodeAnalysis.LanguageServer.dll',
'--logLevel', -- this property is required by the server
'Information',
'--extensionLogDirectory', -- this property is required by the server
fs.joinpath(uv.os_tmpdir(), 'roslyn_ls/logs'),
'--stdio',
},
where `<my_folder>` has to be the folder you extracted the nuget package to.
- for all other platforms put the extracted folder to neovim's PATH (`vim.env.PATH`)
Snippet to enable the language server: >lua
vim.lsp.enable('roslyn_ls')
Commands:
- roslyn.client.completionComplexEdit
Default config:
- capabilities: >lua
{
textDocument = {
diagnostic = {
dynamicRegistration = true
}
}
}
- cmd: >lua
{ "Microsoft.CodeAnalysis.LanguageServer", "--logLevel", "Information", "--extensionLogDirectory", "/tmp/roslyn_ls/logs", "--stdio" }
- commands: >lua
{
["roslyn.client.completionComplexEdit"] = <function 1>
}
- filetypes: >lua
{ "cs" }
- handlers: >lua
{
["razor/provideDynamicFileInfo"] = <function 1>,
["workspace/_roslyn_projectNeedsRestore"] = <function 2>,
["workspace/projectInitializationComplete"] = <function 3>
}
- name: >lua
"roslyn_ls"
- offset_encoding: >lua
"utf-8"
- on_attach (use "gF" to view): ../lsp/roslyn_ls.lua:100
- on_init: >lua
{ <function 1> }
- root_dir (use "gF" to view): ../lsp/roslyn_ls.lua:100
- settings: >lua
{
["csharp|background_analysis"] = {
dotnet_analyzer_diagnostics_scope = "fullSolution",
dotnet_compiler_diagnostics_scope = "fullSolution"
},
["csharp|code_lens"] = {
dotnet_enable_references_code_lens = true
},
["csharp|completion"] = {
dotnet_provide_regex_completions = true,
dotnet_show_completion_items_from_unimported_namespaces = true,
dotnet_show_name_completion_suggestions = true
},
["csharp|inlay_hints"] = {
csharp_enable_inlay_hints_for_implicit_object_creation = true,
csharp_enable_inlay_hints_for_implicit_variable_types = true,
csharp_enable_inlay_hints_for_lambda_parameter_types = true,
csharp_enable_inlay_hints_for_types = true,
dotnet_enable_inlay_hints_for_indexer_parameters = true,
dotnet_enable_inlay_hints_for_literal_parameters = true,
dotnet_enable_inlay_hints_for_object_creation_parameters = true,
dotnet_enable_inlay_hints_for_other_parameters = true,
dotnet_enable_inlay_hints_for_parameters = true,
dotnet_suppress_inlay_hints_for_parameters_that_differ_only_by_suffix = true,
dotnet_suppress_inlay_hints_for_parameters_that_match_argument_name = true,
dotnet_suppress_inlay_hints_for_parameters_that_match_method_intent = true
},
["csharp|symbol_search"] = {
dotnet_search_reference_assemblies = true
}
}
<
------------------------------------------------------------------------------
rpmspec
https://github.com/dcermak/rpm-spec-language-server
Language server protocol (LSP) support for RPM Spec files.
`rpm-spec-language-server` can be installed by running,
>sh
pip install rpm-spec-language-server
Snippet to enable the language server: >lua
vim.lsp.enable('rpmspec')
Default config:
- cmd: >lua
{ "rpm_lsp_server", "--stdio" }
- filetypes: >lua
{ "spec" }
- root_markers: >lua
{ ".git" }
- settings: >lua
{}
<
------------------------------------------------------------------------------
rubocop
https://github.com/rubocop/rubocop
Snippet to enable the language server: >lua
vim.lsp.enable('rubocop')
Default config:
- cmd: >lua
{ "rubocop", "--lsp" }
- filetypes: >lua
{ "ruby" }
- root_markers: >lua
{ "Gemfile", ".git" }
<
------------------------------------------------------------------------------
ruby_lsp
https://shopify.github.io/ruby-lsp/
This gem is an implementation of the language server protocol specification for
Ruby, used to improve editor features.
Install the gem. There's no need to require it, since the server is used as a
standalone executable.
>sh
gem install ruby-lsp
Snippet to enable the language server: >lua
vim.lsp.enable('ruby_lsp')
Default config:
- cmd: >lua
{ "ruby-lsp" }
- filetypes: >lua
{ "ruby", "eruby" }
- init_options: >lua
{
formatter = "auto"
}
- reuse_client (use "gF" to view): ../lsp/ruby_lsp.lua:16
- root_markers: >lua
{ "Gemfile", ".git" }
<
------------------------------------------------------------------------------
ruff
https://github.com/astral-sh/ruff
A Language Server Protocol implementation for Ruff, an extremely fast Python linter and code formatter, written in Rust. It can be installed via `pip`.
>sh
pip install ruff
**Available in Ruff `v0.4.5` in beta and stabilized in Ruff `v0.5.3`.**
This is the new built-in language server written in Rust. It supports the same feature set as `ruff-lsp`, but with superior performance and no installation required. Note that the `ruff-lsp` server will continue to be maintained until further notice.
Server settings can be provided via:
>lua
vim.lsp.config('ruff', {
init_options = {
settings = {
-- Server settings should go here
}
}
})
Refer to the [documentation](https://docs.astral.sh/ruff/editors/) for more details.
Snippet to enable the language server: >lua
vim.lsp.enable('ruff')
Default config:
- cmd: >lua
{ "ruff", "server" }
- filetypes: >lua
{ "python" }
- root_markers: >lua
{ "pyproject.toml", "ruff.toml", ".ruff.toml", ".git" }
- settings: >lua
{}
<
------------------------------------------------------------------------------
ruff_lsp
https://github.com/astral-sh/ruff-lsp
A Language Server Protocol implementation for Ruff, an extremely fast Python linter and code transformation tool, written in Rust. It can be installed via pip.
>sh
pip install ruff-lsp
Extra CLI arguments for `ruff` can be provided via
>lua
vim.lsp.config('ruff_lsp', {
init_options = {
settings = {
-- Any extra CLI arguments for `ruff` go here.
args = {},
}
}
})
Snippet to enable the language server: >lua
vim.lsp.enable('ruff_lsp')
Default config:
- cmd: >lua
{ "ruff-lsp" }
- filetypes: >lua
{ "python" }
- root_markers: >lua
{ "pyproject.toml", "ruff.toml", ".git" }
- settings: >lua
{}
<
------------------------------------------------------------------------------
rumdl
https://github.com/rvben/rumdl
Markdown Linter and Formatter written in Rust.
Snippet to enable the language server: >lua
vim.lsp.enable('rumdl')
Default config:
- cmd: >lua
{ "rumdl", "server" }
- filetypes: >lua
{ "markdown" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
rune_languageserver
https://crates.io/crates/rune-languageserver
A language server for the [Rune](https://rune-rs.github.io/) Language,
an embeddable dynamic programming language for Rust
Snippet to enable the language server: >lua
vim.lsp.enable('rune_languageserver')
Default config:
- cmd: >lua
{ "rune-languageserver" }
- filetypes: >lua
{ "rune" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
rust_analyzer
https://github.com/rust-lang/rust-analyzer
rust-analyzer (aka rls 2.0), a language server for Rust
See [docs](https://rust-analyzer.github.io/book/configuration.html) for extra settings. The settings can be used like this >lua
vim.lsp.config('rust_analyzer', {
settings = {
['rust-analyzer'] = {
diagnostics = {
enable = false;
}
}
}
})
Note: do not set `init_options` for this LS config, it will be automatically populated by the contents of settings["rust-analyzer"] per
https://github.com/rust-lang/rust-analyzer/blob/eb5da56d839ae0a9e9f50774fa3eb78eb0964550/docs/dev/lsp-extensions.md?plain=1#L26.
Snippet to enable the language server: >lua
vim.lsp.enable('rust_analyzer')
Default config:
- before_init (use "gF" to view): ../lsp/rust_analyzer.lua:56
- capabilities: >lua
{
experimental = {
commands = {
commands = { "rust-analyzer.showReferences", "rust-analyzer.runSingle", "rust-analyzer.debugSingle" }
},
serverStatusNotification = true
}
}
- cmd: >lua
{ "rust-analyzer" }
- filetypes: >lua
{ "rust" }
- on_attach (use "gF" to view): ../lsp/rust_analyzer.lua:56
- root_dir (use "gF" to view): ../lsp/rust_analyzer.lua:56
- settings: >lua
{
["rust-analyzer"] = {
lens = {
debug = {
enable = true
},
enable = true,
implementations = {
enable = true
},
references = {
adt = {
enable = true
},
enumVariant = {
enable = true
},
method = {
enable = true
},
trait = {
enable = true
}
},
run = {
enable = true
},
updateTest = {
enable = true
}
}
}
}
<
------------------------------------------------------------------------------
salt_ls
Language server for Salt configuration files.
https://github.com/dcermak/salt-lsp
The language server can be installed with `pip` >sh
pip install salt-lsp
Snippet to enable the language server: >lua
vim.lsp.enable('salt_ls')
Default config:
- cmd: >lua
{ "salt_lsp_server" }
- filetypes: >lua
{ "sls" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
scheme_langserver
https://github.com/ufo5260987423/scheme-langserver
`scheme-langserver`, a language server protocol implementation for scheme.
And for nvim user, please add .sls to scheme file extension list.
Snippet to enable the language server: >lua
vim.lsp.enable('scheme_langserver')
Default config:
- cmd: >lua
{ "scheme-langserver", "~/.scheme-langserver.log", "enable", "disable" }
- filetypes: >lua
{ "scheme" }
- root_markers: >lua
{ "Akku.manifest", ".git" }
<
------------------------------------------------------------------------------
scry
https://github.com/crystal-lang-tools/scry
Crystal language server.
Snippet to enable the language server: >lua
vim.lsp.enable('scry')
Default config:
- cmd: >lua
{ "scry" }
- filetypes: >lua
{ "crystal" }
- root_markers: >lua
{ "shard.yml", ".git" }
<
------------------------------------------------------------------------------
selene3p_ls
https://github.com/antonk52/lua-3p-language-servers
3rd party Language Server for Selene lua linter
Snippet to enable the language server: >lua
vim.lsp.enable('selene3p_ls')
Default config:
- cmd: >lua
{ "selene-3p-language-server" }
- filetypes: >lua
{ "lua" }
- root_markers: >lua
{ "selene.toml" }
<
------------------------------------------------------------------------------
serve_d
https://github.com/Pure-D/serve-d
Microsoft language server protocol implementation for D using workspace-d.
Download a binary from https://github.com/Pure-D/serve-d/releases and put it in your $PATH.
Snippet to enable the language server: >lua
vim.lsp.enable('serve_d')
Default config:
- cmd: >lua
{ "serve-d" }
- filetypes: >lua
{ "d" }
- root_markers: >lua
{ "dub.json", "dub.sdl", ".git" }
<
------------------------------------------------------------------------------
shopify_theme_ls
https://shopify.dev/docs/api/shopify-cli
[Language Server](https://shopify.dev/docs/themes/tools/cli/language-server) and Theme Check (linter) for Shopify themes.
`shopify` can be installed via npm `npm install -g @shopify/cli`.
Note: This LSP already includes Theme Check so you don't need to use the `theme_check` server configuration as well.
Snippet to enable the language server: >lua
vim.lsp.enable('shopify_theme_ls')
Default config:
- cmd: >lua
{ "shopify", "theme", "language-server" }
- filetypes: >lua
{ "liquid" }
- root_markers: >lua
{ ".shopifyignore", ".theme-check.yml", ".theme-check.yaml", "shopify.theme.toml" }
- settings: >lua
{}
<
------------------------------------------------------------------------------
sixtyfps
https://github.com/sixtyfpsui/sixtyfps
`SixtyFPS`'s language server
You can build and install `sixtyfps-lsp` binary with `cargo` >sh
cargo install sixtyfps-lsp
Vim does not have built-in syntax for the `sixtyfps` filetype currently.
This can be added via an autocmd:
>lua
vim.cmd [[ autocmd BufRead,BufNewFile *.60 set filetype=sixtyfps ]]
or by installing a filetype plugin such as https://github.com/RustemB/sixtyfps-vim
Snippet to enable the language server: >lua
vim.lsp.enable('sixtyfps')
Default config:
- cmd: >lua
{ "sixtyfps-lsp" }
- filetypes: >lua
{ "sixtyfps" }
<
------------------------------------------------------------------------------
slangd
https://github.com/shader-slang/slang
The `slangd` binary can be downloaded as part of [slang releases](https://github.com/shader-slang/slang/releases) or
by [building `slang` from source](https://github.com/shader-slang/slang/blob/master/docs/building.md).
The server can be configured by passing a "settings" object to vim.lsp.config('slangd'):
>lua
vim.lsp.config('slangd', {
settings = {
slang = {
predefinedMacros = {"MY_VALUE_MACRO=1"},
inlayHints = {
deducedTypes = true,
parameterNames = true,
}
}
}
})
Available options are documented [here](https://github.com/shader-slang/slang-vscode-extension/tree/main?tab=readme-ov-file#configurations)
or in more detail [here](https://github.com/shader-slang/slang-vscode-extension/blob/main/package.json#L70).
Snippet to enable the language server: >lua
vim.lsp.enable('slangd')
Default config:
- cmd: >lua
{ "slangd" }
- filetypes: >lua
{ "hlsl", "shaderslang" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
slint_lsp
https://github.com/slint-ui/slint
`Slint`'s language server
You can build and install `slint-lsp` binary with `cargo` >sh
cargo install slint-lsp
Vim does not have built-in syntax for the `slint` filetype at this time.
This can be added via an autocmd:
>lua
vim.cmd [[ autocmd BufRead,BufNewFile *.slint set filetype=slint ]]
Snippet to enable the language server: >lua
vim.lsp.enable('slint_lsp')
Default config:
- cmd: >lua
{ "slint-lsp" }
- filetypes: >lua
{ "slint" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
smarty_ls
https://github.com/landeaux/vscode-smarty-langserver-extracted
Language server for Smarty.
`smarty-language-server` can be installed via `npm`:
>sh
npm i -g vscode-smarty-langserver-extracted
Snippet to enable the language server: >lua
vim.lsp.enable('smarty_ls')
Default config:
- cmd: >lua
{ "smarty-language-server", "--stdio" }
- filetypes: >lua
{ "smarty" }
- init_options: >lua
{
storageDir = vim.NIL
}
- root_dir (use "gF" to view): ../lsp/smarty_ls.lua:14
- settings: >lua
{
css = {
validate = true
},
smarty = {
pluginDirs = {}
}
}
<
------------------------------------------------------------------------------
smithy_ls
https://github.com/awslabs/smithy-language-server
"Smithy Language Server", a Language server for the Smithy IDL.
smithy-language-server has no docs that say how to actually install it(?), so look at:
https://github.com/smithy-lang/smithy-vscode/blob/600cfcf0db65edce85f02e6d50f5fa2b0862bc8d/src/extension.ts#L78
Maven package: https://central.sonatype.com/artifact/software.amazon.smithy/smithy-language-server
Installation:
1. Install coursier, or any tool that can install maven packages.
```
brew install coursier
```
2. The LS is auto-installed and launched by:
```
coursier launch software.amazon.smithy:smithy-language-server:0.7.0
```
Snippet to enable the language server: >lua
vim.lsp.enable('smithy_ls')
Default config:
- cmd: >lua
{ "coursier", "launch", "software.amazon.smithy:smithy-language-server:0.7.0", "-M", "software.amazon.smithy.lsp.Main", "--", "0" }
- filetypes: >lua
{ "smithy" }
- init_options: >lua
{
compilerOptions = {
snippetAutoIndent = false
},
isHttpEnabled = true,
statusBarProvider = "show-message"
}
- message_level: >lua
4
- root_markers: >lua
{ "smithy-build.json", "build.gradle", "build.gradle.kts", ".git" }
<
------------------------------------------------------------------------------
snakeskin_ls
https://www.npmjs.com/package/@snakeskin/cli
`snakeskin cli` can be installed via `npm` >sh
npm install -g @snakeskin/cli
Snippet to enable the language server: >lua
vim.lsp.enable('snakeskin_ls')
Default config:
- cmd: >lua
{ "snakeskin-cli", "lsp", "--stdio" }
- filetypes: >lua
{ "ss" }
- root_markers: >lua
{ "package.json" }
<
------------------------------------------------------------------------------
snyk_ls
https://github.com/snyk/snyk-ls
LSP for Snyk Open Source, Snyk Infrastructure as Code, and Snyk Code.
Snippet to enable the language server: >lua
vim.lsp.enable('snyk_ls')
Default config:
- cmd: >lua
{ "snyk-ls" }
- filetypes: >lua
{ "go", "gomod", "javascript", "typescript", "json", "python", "requirements", "helm", "yaml", "terraform", "terraform-vars" }
- init_options: >lua
{
activateSnykCode = "true"
}
- root_markers: >lua
{ ".git", ".snyk" }
- settings: >lua
{}
<
------------------------------------------------------------------------------
solang
A language server for Solidity
See the [documentation](https://solang.readthedocs.io/en/latest/installing.html) for installation instructions.
The language server only provides the following capabilities:
* Syntax highlighting
* Diagnostics
* Hover
There is currently no support for completion, goto definition, references, or other functionality.
Snippet to enable the language server: >lua
vim.lsp.enable('solang')
Default config:
- cmd: >lua
{ "solang", "language-server", "--target", "evm" }
- filetypes: >lua
{ "solidity" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
solargraph
https://solargraph.org/
solargraph, a language server for Ruby
You can install solargraph via gem install.
>sh
gem install --user-install solargraph
Snippet to enable the language server: >lua
vim.lsp.enable('solargraph')
Default config:
- cmd: >lua
{ "solargraph", "stdio" }
- filetypes: >lua
{ "ruby" }
- init_options: >lua
{
formatting = true
}
- root_markers: >lua
{ "Gemfile", ".git" }
- settings: >lua
{
solargraph = {
diagnostics = true
}
}
<
------------------------------------------------------------------------------
solc
https://docs.soliditylang.org/en/latest/installing-solidity.html
solc is the native language server for the Solidity language.
Snippet to enable the language server: >lua
vim.lsp.enable('solc')
Default config:
- cmd: >lua
{ "solc", "--lsp" }
- filetypes: >lua
{ "solidity" }
- root_dir (use "gF" to view): ../lsp/solc.lua:10
<
------------------------------------------------------------------------------
solidity
https://github.com/qiuxiang/solidity-ls
npm i solidity-ls -g
Make sure that solc is installed and it's the same version of the file. solc-select is recommended.
Solidity language server is a LSP with autocomplete, go to definition and diagnostics.
If you use brownie, use this root_markers:
root_markers = { 'brownie-config.yaml', '.git' }
on includePath, you can add an extra path to search for external libs, on remapping you can remap lib <> path, like:
>lua
{ solidity = { includePath = '/Users/your_user/.brownie/packages/', remapping = { ["@OpenZeppelin/"] = 'OpenZeppelin/openzeppelin-contracts@4.6.0/' } } }
**For brownie users**
Change the root_markers to:
>lua
root_markers = { 'brownie-config.yaml', '.git' }
The best way of using it is to have a package.json in your project folder with the packages that you will use.
After installing with package.json, just create a `remappings.txt` with:
>
@OpenZeppelin/=node_modules/OpenZeppelin/openzeppelin-contracts@4.6.0/
You can omit the node_modules as well.
Snippet to enable the language server: >lua
vim.lsp.enable('solidity')
Default config:
- cmd: >lua
{ "solidity-ls", "--stdio" }
- filetypes: >lua
{ "solidity" }
- root_markers: >lua
{ ".git", "package.json" }
- settings: >lua
{
solidity = {
includePath = "",
remapping = {}
}
}
<
------------------------------------------------------------------------------
solidity_ls
https://github.com/juanfranblanco/vscode-solidity
`vscode-solidity-server` can be installed via `npm`:
>sh
npm install -g vscode-solidity-server
`vscode-solidity-server` is a language server for the Solidity language ported from the VSCode "solidity" extension.
Snippet to enable the language server: >lua
vim.lsp.enable('solidity_ls')
Default config:
- cmd: >lua
{ "vscode-solidity-server", "--stdio" }
- filetypes: >lua
{ "solidity" }
- root_markers: >lua
{ "hardhat.config.js", "hardhat.config.ts", "foundry.toml", "remappings.txt", "truffle.js", "truffle-config.js", "ape-config.yaml", ".git", "package.json" }
<
------------------------------------------------------------------------------
solidity_ls_nomicfoundation
https://github.com/NomicFoundation/hardhat-vscode/blob/development/server/README.md
`nomicfoundation-solidity-language-server` can be installed via `npm`:
>sh
npm install -g @nomicfoundation/solidity-language-server
A language server for the Solidity programming language, built by the Nomic Foundation for the Ethereum community.
Snippet to enable the language server: >lua
vim.lsp.enable('solidity_ls_nomicfoundation')
Default config:
- cmd: >lua
{ "nomicfoundation-solidity-language-server", "--stdio" }
- filetypes: >lua
{ "solidity" }
- root_markers: >lua
{ "hardhat.config.js", "hardhat.config.ts", "foundry.toml", "remappings.txt", "truffle.js", "truffle-config.js", "ape-config.yaml", ".git", "package.json" }
<
------------------------------------------------------------------------------
somesass_ls
https://github.com/wkillerud/some-sass/tree/main/packages/language-server
`some-sass-language-server` can be installed via `npm`:
>sh
npm i -g some-sass-language-server
The language server provides:
- Full support for @use and @forward, including aliases, prefixes and hiding.
- Workspace-wide code navigation and refactoring, such as Rename Symbol.
- Rich documentation through SassDoc.
- Language features for %placeholder-selectors, both when using them and writing them.
- Suggestions and hover info for built-in Sass modules, when used with @use.
Snippet to enable the language server: >lua
vim.lsp.enable('somesass_ls')
Default config:
- cmd: >lua
{ "some-sass-language-server", "--stdio" }
- filetypes: >lua
{ "scss", "sass" }
- name: >lua
"somesass_ls"
- root_markers: >lua
{ ".git", ".package.json" }
- settings: >lua
{
somesass = {
suggestAllFromOpenDocument = true
}
}
<
------------------------------------------------------------------------------
sorbet
https://sorbet.org
Sorbet is a fast, powerful type checker designed for Ruby.
You can install Sorbet via gem install. You might also be interested in how to set
Sorbet up for new projects: https://sorbet.org/docs/adopting.
>sh
gem install sorbet
Snippet to enable the language server: >lua
vim.lsp.enable('sorbet')
Default config:
- cmd: >lua
{ "srb", "tc", "--lsp" }
- filetypes: >lua
{ "ruby" }
- root_markers: >lua
{ "Gemfile", ".git" }
<
------------------------------------------------------------------------------
sourcekit
https://github.com/swiftlang/sourcekit-lsp
Language server for Swift and C/C++/Objective-C.
Snippet to enable the language server: >lua
vim.lsp.enable('sourcekit')
Default config:
- capabilities: >lua
{
textDocument = {
diagnostic = {
dynamicRegistration = true,
relatedDocumentSupport = true
}
},
workspace = {
didChangeWatchedFiles = {
dynamicRegistration = true
}
}
}
- cmd: >lua
{ "sourcekit-lsp" }
- filetypes: >lua
{ "swift", "objc", "objcpp", "c", "cpp" }
- get_language_id (use "gF" to view): ../lsp/sourcekit.lua:10
- root_dir (use "gF" to view): ../lsp/sourcekit.lua:10
<
------------------------------------------------------------------------------
spectral
https://github.com/luizcorreia/spectral-language-server
`A flexible JSON/YAML linter for creating automated style guides, with baked in support for OpenAPI v2 & v3.`
`spectral-language-server` can be installed via `npm` >sh
npm i -g spectral-language-server
See [vscode-spectral](https://github.com/stoplightio/vscode-spectral#extension-settings) for configuration options.
Snippet to enable the language server: >lua
vim.lsp.enable('spectral')
Default config:
- cmd: >lua
{ "spectral-language-server", "--stdio" }
- filetypes: >lua
{ "yaml", "json", "yml" }
- root_markers: >lua
{ ".spectral.yaml", ".spectral.yml", ".spectral.json", ".spectral.js" }
- settings: >lua
{
enable = true,
run = "onType",
validateLanguages = { "yaml", "json", "yml" }
}
<
------------------------------------------------------------------------------
spyglassmc_language_server
https://github.com/SpyglassMC/Spyglass/tree/main/packages/language-server
Language server for Minecraft datapacks.
`spyglassmc-language-server` can be installed via `npm`:
>sh
npm i -g @spyglassmc/language-server
You may also need to configure the filetype:
`autocmd BufNewFile,BufRead *.mcfunction set filetype=mcfunction`
This is automatically done by [CrystalAlpha358/vim-mcfunction](https://github.com/CrystalAlpha358/vim-mcfunction), which also provide syntax highlight.
Snippet to enable the language server: >lua
vim.lsp.enable('spyglassmc_language_server')
Default config:
- cmd: >lua
{ "spyglassmc-language-server", "--stdio" }
- filetypes: >lua
{ "mcfunction" }
- root_markers: >lua
{ "pack.mcmeta" }
<
------------------------------------------------------------------------------
sqlls
https://github.com/joe-re/sql-language-server
This LSP can be installed via `npm`. Find further instructions on manual installation of the sql-language-server at [joe-re/sql-language-server](https://github.com/joe-re/sql-language-server).
Snippet to enable the language server: >lua
vim.lsp.enable('sqlls')
Default config:
- cmd: >lua
{ "sql-language-server", "up", "--method", "stdio" }
- filetypes: >lua
{ "sql", "mysql" }
- root_markers: >lua
{ ".sqllsrc.json" }
- settings: >lua
{}
<
------------------------------------------------------------------------------
sqls
https://github.com/sqls-server/sqls
>lua
vim.lsp.config('sqls', {
cmd = {"path/to/command", "-config", "path/to/config.yml"};
...
})
Sqls can be installed via `go install github.com/sqls-server/sqls@latest`. Instructions for compiling Sqls from the source can be found at [sqls-server/sqls](https://github.com/sqls-server/sqls).
Snippet to enable the language server: >lua
vim.lsp.enable('sqls')
Default config:
- cmd: >lua
{ "sqls" }
- filetypes: >lua
{ "sql", "mysql" }
- root_markers: >lua
{ "config.yml" }
- settings: >lua
{}
<
------------------------------------------------------------------------------
sqruff
https://github.com/quarylabs/sqruff
`sqruff` can be installed by following the instructions [here](https://github.com/quarylabs/sqruff?tab=readme-ov-file#installation)
Snippet to enable the language server: >lua
vim.lsp.enable('sqruff')
Default config:
- cmd: >lua
{ "sqruff", "lsp" }
- filetypes: >lua
{ "sql" }
- root_markers: >lua
{ ".sqruff", ".git" }
<
------------------------------------------------------------------------------
standardrb
https://github.com/testdouble/standard
Ruby Style Guide, with linter & automatic code fixer.
Snippet to enable the language server: >lua
vim.lsp.enable('standardrb')
Default config:
- cmd: >lua
{ "standardrb", "--lsp" }
- filetypes: >lua
{ "ruby" }
- root_markers: >lua
{ "Gemfile", ".git" }
<
------------------------------------------------------------------------------
starlark_rust
https://github.com/facebookexperimental/starlark-rust/
The LSP part of `starlark-rust` is not currently documented,
but the implementation works well for linting.
This gives valuable warnings for potential issues in the code,
but does not support refactorings.
It can be installed with cargo: https://crates.io/crates/starlark
Snippet to enable the language server: >lua
vim.lsp.enable('starlark_rust')
Default config:
- cmd: >lua
{ "starlark", "--lsp" }
- filetypes: >lua
{ "star", "bzl", "BUILD.bazel" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
starpls
https://github.com/withered-magic/starpls
`starpls` is an LSP implementation for Starlark. Installation instructions can be found in the project's README.
Snippet to enable the language server: >lua
vim.lsp.enable('starpls')
Default config:
- cmd: >lua
{ "starpls" }
- filetypes: >lua
{ "bzl" }
- root_markers: >lua
{ "WORKSPACE", "WORKSPACE.bazel", "MODULE.bazel" }
<
------------------------------------------------------------------------------
statix
https://github.com/nerdypepper/statix
lints and suggestions for the nix programming language
Snippet to enable the language server: >lua
vim.lsp.enable('statix')
Default config:
- cmd: >lua
{ "statix", "check", "--stdin" }
- filetypes: >lua
{ "nix" }
- root_markers: >lua
{ "flake.nix", ".git" }
<
------------------------------------------------------------------------------
steep
https://github.com/soutaro/steep
`steep` is a static type checker for Ruby.
You need `Steepfile` to make it work. Generate it with `steep init`.
Snippet to enable the language server: >lua
vim.lsp.enable('steep')
Default config:
- cmd: >lua
{ "steep", "langserver" }
- filetypes: >lua
{ "ruby", "eruby" }
- root_markers: >lua
{ "Steepfile", ".git" }
<
------------------------------------------------------------------------------
stimulus_ls
https://www.npmjs.com/package/stimulus-language-server
`stimulus-lsp` can be installed via `npm`:
>sh
npm install -g stimulus-language-server
or via `yarn`:
>sh
yarn global add stimulus-language-server
Snippet to enable the language server: >lua
vim.lsp.enable('stimulus_ls')
Default config:
- cmd: >lua
{ "stimulus-language-server", "--stdio" }
- filetypes: >lua
{ "html", "ruby", "eruby", "blade", "php" }
- root_markers: >lua
{ "Gemfile", ".git" }
<
------------------------------------------------------------------------------
stylelint_lsp
https://github.com/bmatcuk/stylelint-lsp
`stylelint-lsp` can be installed via `npm`:
>sh
npm i -g stylelint-lsp
Can be configured by passing a `settings.stylelintplus` object to vim.lsp.config('stylelint_lsp'):
>lua
vim.lsp.config('stylelint_lsp', {
settings = {
stylelintplus = {
-- see available options in stylelint-lsp documentation
}
}
})
Snippet to enable the language server: >lua
vim.lsp.enable('stylelint_lsp')
Default config:
- cmd: >lua
{ "stylelint-lsp", "--stdio" }
- filetypes: >lua
{ "astro", "css", "html", "less", "scss", "sugarss", "vue", "wxss" }
- root_markers: >lua
{ ".stylelintrc", ".stylelintrc.mjs", ".stylelintrc.cjs", ".stylelintrc.js", ".stylelintrc.json", ".stylelintrc.yaml", ".stylelintrc.yml", "stylelint.config.mjs", "stylelint.config.cjs", "stylelint.config.js" }
- settings: >lua
{}
<
------------------------------------------------------------------------------
stylua
https://github.com/JohnnyMorganz/StyLua
A deterministic code formatter for Lua 5.1, 5.2, 5.3, 5.4, LuaJIT, Luau and CfxLua/FiveM Lua
Snippet to enable the language server: >lua
vim.lsp.enable('stylua')
Default config:
- cmd: >lua
{ "stylua", "--lsp" }
- filetypes: >lua
{ "lua" }
- root_markers: >lua
{ ".stylua.toml", "stylua.toml", ".editorconfig" }
<
------------------------------------------------------------------------------
stylua3p_ls
https://github.com/antonk52/lua-3p-language-servers
3rd party Language Server for Stylua lua formatter
Snippet to enable the language server: >lua
vim.lsp.enable('stylua3p_ls')
Default config:
- cmd: >lua
{ "stylua-3p-language-server" }
- filetypes: >lua
{ "lua" }
- root_markers: >lua
{ ".stylua.toml", "stylua.toml" }
<
------------------------------------------------------------------------------
superhtml
https://github.com/kristoff-it/superhtml
HTML Language Server & Templating Language Library
This LSP is designed to tightly adhere to the HTML spec as well as enforcing
some additional rules that ensure HTML clarity.
If you want to disable HTML support for another HTML LSP, add the following
to your configuration:
>lua
vim.lsp.config('superhtml', {
filetypes = { 'superhtml' }
})
Snippet to enable the language server: >lua
vim.lsp.enable('superhtml')
Default config:
- cmd: >lua
{ "superhtml", "lsp" }
- filetypes: >lua
{ "superhtml", "html" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
svelte
https://github.com/sveltejs/language-tools/tree/master/packages/language-server
Note: assuming that [ts_ls](#ts_ls) is setup, full JavaScript/TypeScript support (find references, rename, etc of symbols in Svelte files when working in JS/TS files) requires per-project installation and configuration of [typescript-svelte-plugin](https://github.com/sveltejs/language-tools/tree/master/packages/typescript-plugin#usage).
`svelte-language-server` can be installed via `npm` >sh
npm install -g svelte-language-server
Snippet to enable the language server: >lua
vim.lsp.enable('svelte')
Default config:
- cmd: >lua
{ "svelteserver", "--stdio" }
- filetypes: >lua
{ "svelte" }
- on_attach (use "gF" to view): ../lsp/svelte.lua:13
- root_dir (use "gF" to view): ../lsp/svelte.lua:13
<
------------------------------------------------------------------------------
svlangserver
https://github.com/imc-trading/svlangserver
Language server for SystemVerilog.
`svlangserver` can be installed via `npm`:
>sh
$ npm install -g @imc-trading/svlangserver
Snippet to enable the language server: >lua
vim.lsp.enable('svlangserver')
Default config:
- cmd: >lua
{ "svlangserver" }
- filetypes: >lua
{ "verilog", "systemverilog" }
- on_attach (use "gF" to view): ../lsp/svlangserver.lua:14
- root_markers: >lua
{ ".svlangserver", ".git" }
- settings: >lua
{
systemverilog = {
includeIndexing = { "*.{v,vh,sv,svh}", "**/*.{v,vh,sv,svh}" }
}
}
<
------------------------------------------------------------------------------
svls
https://github.com/dalance/svls
Language server for verilog and SystemVerilog
`svls` can be installed via `cargo`:
```sh
cargo install svls
```
Snippet to enable the language server: >lua
vim.lsp.enable('svls')
Default config:
- cmd: >lua
{ "svls" }
- filetypes: >lua
{ "verilog", "systemverilog" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
swift_mesonls
https://github.com/JCWasmx86/Swift-MesonLSP
Meson language server written in Swift
Snippet to enable the language server: >lua
vim.lsp.enable('swift_mesonls')
Default config:
- cmd: >lua
{ "Swift-MesonLSP", "--lsp" }
- filetypes: >lua
{ "meson" }
- root_markers: >lua
{ "meson.build", "meson_options.txt", "meson.options", ".git" }
<
------------------------------------------------------------------------------
syntax_tree
https://ruby-syntax-tree.github.io/syntax_tree/
A fast Ruby parser and formatter.
Syntax Tree is a suite of tools built on top of the internal CRuby parser. It
provides the ability to generate a syntax tree from source, as well as the
tools necessary to inspect and manipulate that syntax tree. It can be used to
build formatters, linters, language servers, and more.
>sh
gem install syntax_tree
Snippet to enable the language server: >lua
vim.lsp.enable('syntax_tree')
Default config:
- cmd: >lua
{ "stree", "lsp" }
- filetypes: >lua
{ "ruby" }
- root_markers: >lua
{ ".streerc", "Gemfile", ".git" }
<
------------------------------------------------------------------------------
systemd_ls
https://github.com/psacawa/systemd-language-server
`systemd-language-server` can be installed via `pip` >sh
pip install systemd-language-server
Language Server for Systemd unit files
Snippet to enable the language server: >lua
vim.lsp.enable('systemd_ls')
Default config:
- cmd: >lua
{ "systemd-language-server" }
- filetypes: >lua
{ "systemd" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
tabby_ml
https://tabby.tabbyml.com/blog/running-tabby-as-a-language-server
Language server for Tabby, an opensource, self-hosted AI coding assistant.
`tabby-agent` can be installed via `npm`:
>sh
npm install --global tabby-agent
Snippet to enable the language server: >lua
vim.lsp.enable('tabby_ml')
Default config:
- cmd: >lua
{ "tabby-agent", "--lsp", "--stdio" }
- filetypes: >lua
{}
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
tailwindcss
https://github.com/tailwindlabs/tailwindcss-intellisense
Tailwind CSS Language Server can be installed via npm:
npm install -g @tailwindcss/language-server
Snippet to enable the language server: >lua
vim.lsp.enable('tailwindcss')
Default config:
- before_init (use "gF" to view): ../lsp/tailwindcss.lua:10
- capabilities: >lua
{
workspace = {
didChangeWatchedFiles = {
dynamicRegistration = true
}
}
}
- cmd: >lua
{ "tailwindcss-language-server", "--stdio" }
- filetypes: >lua
{ "aspnetcorerazor", "astro", "astro-markdown", "blade", "clojure", "django-html", "htmldjango", "edge", "eelixir", "elixir", "ejs", "erb", "eruby", "gohtml", "gohtmltmpl", "haml", "handlebars", "hbs", "html", "htmlangular", "html-eex", "heex", "jade", "leaf", "liquid", "markdown", "mdx", "mustache", "njk", "nunjucks", "php", "razor", "slim", "twig", "css", "less", "postcss", "sass", "scss", "stylus", "sugarss", "javascript", "javascriptreact", "reason", "rescript", "typescript", "typescriptreact", "vue", "svelte", "templ" }
- root_dir (use "gF" to view): ../lsp/tailwindcss.lua:10
- settings: >lua
{
tailwindCSS = {
classAttributes = { "class", "className", "class:list", "classList", "ngClass" },
includeLanguages = {
eelixir = "html-eex",
elixir = "phoenix-heex",
eruby = "erb",
heex = "phoenix-heex",
htmlangular = "html",
templ = "html"
},
lint = {
cssConflict = "warning",
invalidApply = "error",
invalidConfigPath = "error",
invalidScreen = "error",
invalidTailwindDirective = "error",
invalidVariant = "error",
recommendedVariantOrder = "warning"
},
validate = true
}
}
- `workspace_required` : `true`
<
------------------------------------------------------------------------------
taplo
https://taplo.tamasfe.dev/cli/usage/language-server.html
Language server for Taplo, a TOML toolkit.
`taplo-cli` can be installed via `cargo` >sh
cargo install --features lsp --locked taplo-cli
Snippet to enable the language server: >lua
vim.lsp.enable('taplo')
Default config:
- cmd: >lua
{ "taplo", "lsp", "stdio" }
- filetypes: >lua
{ "toml" }
- root_markers: >lua
{ ".taplo.toml", "taplo.toml", ".git" }
<
------------------------------------------------------------------------------
tblgen_lsp_server
https://mlir.llvm.org/docs/Tools/MLIRLSP/#tablegen-lsp-language-server--tblgen-lsp-server
The Language Server for the LLVM TableGen language
`tblgen-lsp-server` can be installed at the llvm-project repository (https://github.com/llvm/llvm-project)
Snippet to enable the language server: >lua
vim.lsp.enable('tblgen_lsp_server')
Default config:
- cmd: >lua
{ "tblgen-lsp-server" }
- filetypes: >lua
{ "tablegen" }
- root_markers: >lua
{ "tablegen_compile_commands.yml", ".git" }
<
------------------------------------------------------------------------------
tclsp
https://github.com/nmoroze/tclint
`tclsp`, a language server for Tcl
`tclsp` can be installed via `pipx` >sh
pipx install tclint
Or via `pip` >sh
pip install tclint
Snippet to enable the language server: >lua
vim.lsp.enable('tclsp')
Default config:
- cmd: >lua
{ "tclsp" }
- filetypes: >lua
{ "tcl", "sdc", "xdc", "upf" }
- root_markers: >lua
{ "tclint.toml", ".tclint", "pyproject.toml", ".git" }
<
------------------------------------------------------------------------------
teal_ls
https://github.com/teal-language/teal-language-server
Install with:>
luarocks install teal-language-server
Optional Command Args:
* "--log-mode=by_date" - Enable logging in $HOME/.cache/teal-language-server. Log name will be date + pid of process
* "--log-mode=by_proj_path" - Enable logging in $HOME/.cache/teal-language-server. Log name will be project path + pid of process
* "--verbose=true" - Increases log level. Does nothing unless log-mode is set
Snippet to enable the language server: >lua
vim.lsp.enable('teal_ls')
Default config:
- cmd: >lua
{ "teal-language-server" }
- filetypes: >lua
{ "teal" }
- root_markers: >lua
{ "tlconfig.lua" }
<
------------------------------------------------------------------------------
templ
https://templ.guide
The official language server for the templ HTML templating language.
Snippet to enable the language server: >lua
vim.lsp.enable('templ')
Default config:
- cmd: >lua
{ "templ", "lsp" }
- filetypes: >lua
{ "templ" }
- root_markers: >lua
{ "go.work", "go.mod", ".git" }
<
------------------------------------------------------------------------------
termux_language_server
https://github.com/termux/termux-language-server
Language server for various bash scripts such as Arch PKGBUILD, Gentoo ebuild, Termux build.sh, etc.
Snippet to enable the language server: >lua
vim.lsp.enable('termux_language_server')
Default config:
- cmd: >lua
{ "termux-language-server" }
- root_dir (use "gF" to view): ../lsp/termux_language_server.lua:10
<
------------------------------------------------------------------------------
terraform_lsp
https://github.com/juliosueiras/terraform-lsp
Terraform language server
Download a released binary from
https://github.com/juliosueiras/terraform-lsp/releases.
From https://github.com/hashicorp/terraform-ls#terraform-ls-vs-terraform-lsp:
Both HashiCorp and the maintainer of terraform-lsp expressed interest in
collaborating on a language server and are working towards a _long-term_
goal of a single stable and feature-complete implementation.
For the time being both projects continue to exist, giving users the
choice:
- `terraform-ls` providing
- overall stability (by relying only on public APIs)
- compatibility with any provider and any Terraform >=0.12.0 currently
less features
- due to project being younger and relying on public APIs which may
not offer the same functionality yet
- `terraform-lsp` providing
- currently more features
- compatibility with a single particular Terraform (0.12.20 at time of writing)
- configs designed for other 0.12 versions may work, but interpretation may be inaccurate
- less stability (due to reliance on Terraform's own internal packages)
Snippet to enable the language server: >lua
vim.lsp.enable('terraform_lsp')
Default config:
- cmd: >lua
{ "terraform-lsp" }
- filetypes: >lua
{ "terraform", "hcl" }
- root_markers: >lua
{ ".terraform", ".git" }
<
------------------------------------------------------------------------------
terraformls
https://github.com/hashicorp/terraform-ls
Terraform language server
Download a released binary from https://github.com/hashicorp/terraform-ls/releases.
From https://github.com/hashicorp/terraform-ls#terraform-ls-vs-terraform-lsp:
Both HashiCorp and the maintainer of terraform-lsp expressed interest in
collaborating on a language server and are working towards a _long-term_
goal of a single stable and feature-complete implementation.
For the time being both projects continue to exist, giving users the
choice:
- `terraform-ls` providing
- overall stability (by relying only on public APIs)
- compatibility with any provider and any Terraform >=0.12.0 currently
less features
- due to project being younger and relying on public APIs which may
not offer the same functionality yet
- `terraform-lsp` providing
- currently more features
- compatibility with a single particular Terraform (0.12.20 at time of writing)
- configs designed for other 0.12 versions may work, but interpretation may be inaccurate
- less stability (due to reliance on Terraform's own internal packages)
Note, that the `settings` configuration option uses the `workspace/didChangeConfiguration` event,
[which is not supported by terraform-ls](https://github.com/hashicorp/terraform-ls/blob/main/docs/features.md).
Instead you should use `init_options` which passes the settings as part of the LSP initialize call
[as is required by terraform-ls](https://github.com/hashicorp/terraform-ls/blob/main/docs/SETTINGS.md#how-to-pass-settings).
Snippet to enable the language server: >lua
vim.lsp.enable('terraformls')
Default config:
- cmd: >lua
{ "terraform-ls", "serve" }
- filetypes: >lua
{ "terraform", "terraform-vars" }
- root_markers: >lua
{ ".terraform", ".git" }
<
------------------------------------------------------------------------------
texlab
https://github.com/latex-lsp/texlab
A completion engine built from scratch for (La)TeX.
See https://github.com/latex-lsp/texlab/wiki/Configuration for configuration options.
There are some non standard commands supported, namely:
`LspTexlabBuild`, `LspTexlabForward`, `LspTexlabCancelBuild`,
`LspTexlabDependencyGraph`, `LspTexlabCleanArtifacts`,
`LspTexlabCleanAuxiliary`, `LspTexlabFindEnvironments`,
and `LspTexlabChangeEnvironment`.
Snippet to enable the language server: >lua
vim.lsp.enable('texlab')
Default config:
- cmd: >lua
{ "texlab" }
- filetypes: >lua
{ "tex", "plaintex", "bib" }
- on_attach (use "gF" to view): ../lsp/texlab.lua:134
- root_markers: >lua
{ ".git", ".latexmkrc", "latexmkrc", ".texlabroot", "texlabroot", "Tectonic.toml" }
- settings: >lua
{
texlab = {
bibtexFormatter = "texlab",
build = {
args = { "-pdf", "-interaction=nonstopmode", "-synctex=1", "%f" },
executable = "latexmk",
forwardSearchAfter = false,
onSave = false
},
chktex = {
onEdit = false,
onOpenAndSave = false
},
diagnosticsDelay = 300,
formatterLineLength = 80,
forwardSearch = {
args = {}
},
latexFormatter = "latexindent",
latexindent = {
modifyLineBreaks = false
}
}
}
<
------------------------------------------------------------------------------
textlsp
https://github.com/hangyav/textLSP
`textLSP` is an LSP server for text spell and grammar checking with various AI tools.
It supports multiple text file formats, such as LaTeX, Org or txt.
For the available text analyzer tools and their configuration, see the [GitHub](https://github.com/hangyav/textLSP) page.
By default, all analyzers are disabled in textLSP, since most of them need special settings.
For quick testing, LanguageTool is enabled in the default `nvim-lspconfig` configuration.
To install run: `pip install textLSP`
Snippet to enable the language server: >lua
vim.lsp.enable('textlsp')
Default config:
- cmd: >lua
{ "textlsp" }
- filetypes: >lua
{ "text", "tex", "org" }
- root_markers: >lua
{ ".git" }
- settings: >lua
{
textLSP = {
analysers = {
languagetool = {
check_text = {
on_change = false,
on_open = true,
on_save = true
},
enabled = true
}
},
documents = {
org = {
org_todo_keywords = { "TODO", "IN_PROGRESS", "DONE" }
}
}
}
}
<
------------------------------------------------------------------------------
tflint
https://github.com/terraform-linters/tflint
A pluggable Terraform linter that can act as lsp server.
Installation instructions can be found in https://github.com/terraform-linters/tflint#installation.
Snippet to enable the language server: >lua
vim.lsp.enable('tflint')
Default config:
- cmd: >lua
{ "tflint", "--langserver" }
- filetypes: >lua
{ "terraform" }
- root_markers: >lua
{ ".terraform", ".git", ".tflint.hcl" }
<
------------------------------------------------------------------------------
theme_check
https://github.com/Shopify/shopify-cli
`theme-check-language-server` is bundled with `shopify-cli` or it can also be installed via
https://github.com/Shopify/theme-check#installation
**NOTE:**
If installed via Homebrew, `cmd` must be set to 'theme-check-liquid-server'
>lua
vim.lsp.config('theme_check, {
cmd = { 'theme-check-liquid-server' }
})
Snippet to enable the language server: >lua
vim.lsp.enable('theme_check')
Default config:
- cmd: >lua
{ "theme-check-language-server", "--stdio" }
- filetypes: >lua
{ "liquid" }
- root_markers: >lua
{ ".theme-check.yml" }
- settings: >lua
{}
<
------------------------------------------------------------------------------
thriftls
https://github.com/joyme123/thrift-ls
you can install thriftls by mason or download binary here: https://github.com/joyme123/thrift-ls/releases
Snippet to enable the language server: >lua
vim.lsp.enable('thriftls')
Default config:
- cmd: >lua
{ "thriftls" }
- filetypes: >lua
{ "thrift" }
- root_markers: >lua
{ ".thrift" }
<
------------------------------------------------------------------------------
tilt_ls
https://github.com/tilt-dev/tilt
Tilt language server.
You might need to add filetype detection manually:
>vim
autocmd BufRead Tiltfile setf=tiltfile
Snippet to enable the language server: >lua
vim.lsp.enable('tilt_ls')
Default config:
- cmd: >lua
{ "tilt", "lsp", "start" }
- filetypes: >lua
{ "tiltfile" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
tinymist
https://github.com/Myriad-Dreamin/tinymist
An integrated language service for Typst [taɪpst]. You can also call it "微霭" [wēi ǎi] in Chinese.
Currently some of Tinymist's workspace commands are supported, namely:
`LspTinymistExportSvg`, `LspTinymistExportPng`, `LspTinymistExportPdf`,
`LspTinymistExportMarkdown`, `LspTinymistExportText`, `LspTinymistExportQuery`,
`LspTinymistExportAnsiHighlight`, `LspTinymistGetServerInfo`,
`LspTinymistGetDocumentTrace`, `LspTinymistGetWorkspaceLabels`,
`LspTinymistGetDocumentMetrics`, and `LspTinymistPinMain`.
Snippet to enable the language server: >lua
vim.lsp.enable('tinymist')
Default config:
- cmd: >lua
{ "tinymist" }
- filetypes: >lua
{ "typst" }
- on_attach (use "gF" to view): ../lsp/tinymist.lua:45
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
tofu_ls
[OpenTofu Language Server](https://github.com/opentofu/tofu-ls)
Snippet to enable the language server: >lua
vim.lsp.enable('tofu_ls')
Default config:
- cmd: >lua
{ "tofu-ls", "serve" }
- filetypes: >lua
{ "opentofu", "opentofu-vars", "terraform" }
- root_markers: >lua
{ ".terraform", ".git" }
<
------------------------------------------------------------------------------
tombi
https://tombi-toml.github.io/tombi/
Language server for Tombi, a TOML toolkit.
Snippet to enable the language server: >lua
vim.lsp.enable('tombi')
Default config:
- cmd: >lua
{ "tombi", "lsp" }
- filetypes: >lua
{ "toml" }
- root_markers: >lua
{ "tombi.toml", "pyproject.toml", ".git" }
<
------------------------------------------------------------------------------
ts_ls
https://github.com/typescript-language-server/typescript-language-server
`ts_ls`, aka `typescript-language-server`, is a Language Server Protocol implementation for TypeScript wrapping `tsserver`. Note that `ts_ls` is not `tsserver`.
`typescript-language-server` depends on `typescript`. Both packages can be installed via `npm` >sh
npm install -g typescript typescript-language-server
To configure typescript language server, add a
[`tsconfig.json`](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html) or
[`jsconfig.json`](https://code.visualstudio.com/docs/languages/jsconfig) to the root of your
project.
Here's an example that disables type checking in JavaScript files.
>json
{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"checkJs": false
},
"exclude": [
"node_modules"
]
}
Use the `:LspTypescriptSourceAction` command to see "whole file" ("source") code-actions such as:
- organize imports
- remove unused code
Use the `:LspTypescriptGoToSourceDefinition` command to navigate to the source definition of a symbol (e.g., jump to the original implementation instead of type definitions).
### Monorepo support
`ts_ls` supports monorepos by default. It will automatically find the `tsconfig.json` or `jsconfig.json` corresponding to the package you are working on.
This works without the need of spawning multiple instances of `ts_ls`, saving memory.
It is recommended to use the same version of TypeScript in all packages, and therefore have it available in your workspace root. The location of the TypeScript binary will be determined automatically, but only once.
Snippet to enable the language server: >lua
vim.lsp.enable('ts_ls')
Commands:
- editor.action.showReferences
Default config:
- cmd: >lua
{ "typescript-language-server", "--stdio" }
- commands: >lua
{
["editor.action.showReferences"] = <function 1>
}
- filetypes: >lua
{ "javascript", "javascriptreact", "javascript.jsx", "typescript", "typescriptreact", "typescript.tsx" }
- handlers: >lua
{
["_typescript.rename"] = <function 1>
}
- init_options: >lua
{
hostInfo = "neovim"
}
- on_attach (use "gF" to view): ../lsp/ts_ls.lua:47
- root_dir (use "gF" to view): ../lsp/ts_ls.lua:47
<
------------------------------------------------------------------------------
ts_query_ls
https://github.com/ribru17/ts_query_ls
Can be configured by passing a "settings" object to `vim.lsp.config('ts_query_ls', {})` >lua
vim.lsp.config('ts_query_ls', {
init_options = {
parser_install_directories = {
'/my/parser/install/dir',
},
-- This setting is provided by default
parser_aliases = {
ecma = 'javascript',
jsx = 'javascript',
php_only = 'php',
},
},
})
Snippet to enable the language server: >lua
vim.lsp.enable('ts_query_ls')
Default config:
- cmd: >lua
{ "ts_query_ls" }
- filetypes: >lua
{ "query" }
- init_options: >lua
{
parser_aliases = {
ecma = "javascript",
jsx = "javascript",
php_only = "php"
},
parser_install_directories = { "/home/runner/.local/share/nvim/site/parser" }
}
- on_attach (use "gF" to view): ../lsp/ts_query_ls.lua:26
- root_markers: >lua
{ ".tsqueryrc.json", ".git" }
<
------------------------------------------------------------------------------
tsgo
https://github.com/microsoft/typescript-go
`typescript-go` is experimental port of the TypeScript compiler (tsc) and language server (tsserver) to the Go programming language.
`tsgo` can be installed via npm `npm install @typescript/native-preview`.
### Monorepo support
`tsgo` supports monorepos by default. It will automatically find the `tsconfig.json` or `jsconfig.json` corresponding to the package you are working on.
This works without the need of spawning multiple instances of `tsgo`, saving memory.
It is recommended to use the same version of TypeScript in all packages, and therefore have it available in your workspace root. The location of the TypeScript binary will be determined automatically, but only once.
Snippet to enable the language server: >lua
vim.lsp.enable('tsgo')
Default config:
- cmd: >lua
{ "tsgo", "--lsp", "--stdio" }
- filetypes: >lua
{ "javascript", "javascriptreact", "javascript.jsx", "typescript", "typescriptreact", "typescript.tsx" }
- root_dir (use "gF" to view): ../lsp/tsgo.lua:18
<
------------------------------------------------------------------------------
tsp_server
https://github.com/microsoft/typespec
The language server for TypeSpec, a language for defining cloud service APIs and shapes.
`tsp-server` can be installed together with the typespec compiler via `npm` >sh
npm install -g @typespec/compiler
Snippet to enable the language server: >lua
vim.lsp.enable('tsp_server')
Default config:
- cmd: >lua
{ "tsp-server", "--stdio" }
- filetypes: >lua
{ "typespec" }
- root_markers: >lua
{ "tspconfig.yaml", ".git" }
<
------------------------------------------------------------------------------
ttags
https://github.com/npezza93/ttags
Snippet to enable the language server: >lua
vim.lsp.enable('ttags')
Default config:
- cmd: >lua
{ "ttags", "lsp" }
- filetypes: >lua
{ "ruby", "rust", "javascript", "haskell" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
turbo_ls
https://www.npmjs.com/package/turbo-language-server
`turbo-language-server` can be installed via `npm`:
>sh
npm install -g turbo-language-server
or via `yarn`:
>sh
yarn global add turbo-language-server
Snippet to enable the language server: >lua
vim.lsp.enable('turbo_ls')
Default config:
- cmd: >lua
{ "turbo-language-server", "--stdio" }
- filetypes: >lua
{ "html", "ruby", "eruby", "blade", "php" }
- root_markers: >lua
{ "Gemfile", ".git" }
<
------------------------------------------------------------------------------
turtle_ls
https://github.com/stardog-union/stardog-language-servers/tree/master/packages/turtle-language-server
`turtle-language-server`, An editor-agnostic server providing language intelligence (diagnostics, hover tooltips, etc.) for the W3C standard Turtle RDF syntax via the Language Server Protocol.
installable via npm install -g turtle-language-server or yarn global add turtle-language-server.
requires node.
Snippet to enable the language server: >lua
vim.lsp.enable('turtle_ls')
Default config:
- cmd: >lua
{ "node",
[3] = "--stdio"
}
- filetypes: >lua
{ "turtle", "ttl" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
tvm_ffi_navigator
https://github.com/tqchen/ffi-navigator
The Language Server for FFI calls in TVM to be able jump between python and C++
FFI navigator can be installed with `pip install ffi-navigator`, buf for more details, please see
https://github.com/tqchen/ffi-navigator?tab=readme-ov-file#installation
Snippet to enable the language server: >lua
vim.lsp.enable('tvm_ffi_navigator')
Default config:
- cmd: >lua
{ "python", "-m", "ffi_navigator.langserver" }
- filetypes: >lua
{ "python", "cpp" }
- root_markers: >lua
{ "pyproject.toml", ".git" }
<
------------------------------------------------------------------------------
twiggy_language_server
https://github.com/moetelo/twiggy
`twiggy-language-server` can be installed via `npm` >sh
npm install -g twiggy-language-server
Snippet to enable the language server: >lua
vim.lsp.enable('twiggy_language_server')
Default config:
- cmd: >lua
{ "twiggy-language-server", "--stdio" }
- filetypes: >lua
{ "twig" }
- root_markers: >lua
{ "composer.json", ".git" }
<
------------------------------------------------------------------------------
ty
https://github.com/astral-sh/ty
A Language Server Protocol implementation for ty, an extremely fast Python type checker and language server, written in Rust.
For installation instructions, please refer to the [ty documentation](https://github.com/astral-sh/ty/blob/main/README.md#getting-started).
Snippet to enable the language server: >lua
vim.lsp.enable('ty')
Default config:
- cmd: >lua
{ "ty", "server" }
- filetypes: >lua
{ "python" }
- root_markers: >lua
{ "ty.toml", "pyproject.toml", "setup.py", "setup.cfg", "requirements.txt", ".git" }
<
------------------------------------------------------------------------------
typeprof
https://github.com/ruby/typeprof
`typeprof` is the built-in analysis and LSP tool for Ruby 3.1+.
Snippet to enable the language server: >lua
vim.lsp.enable('typeprof')
Default config:
- cmd: >lua
{ "typeprof", "--lsp", "--stdio" }
- filetypes: >lua
{ "ruby", "eruby" }
- root_markers: >lua
{ "Gemfile", ".git" }
<
------------------------------------------------------------------------------
typos_lsp
https://github.com/crate-ci/typos
https://github.com/tekumara/typos-lsp
A Language Server Protocol implementation for Typos, a low false-positive
source code spell checker, written in Rust. Download it from the releases page
on GitHub: https://github.com/tekumara/typos-lsp/releases
Snippet to enable the language server: >lua
vim.lsp.enable('typos_lsp')
Default config:
- cmd: >lua
{ "typos-lsp" }
- root_markers: >lua
{ "typos.toml", "_typos.toml", ".typos.toml", "pyproject.toml", "Cargo.toml" }
- settings: >lua
{}
<
------------------------------------------------------------------------------
typst_lsp
https://github.com/nvarner/typst-lsp
Language server for Typst.
Snippet to enable the language server: >lua
vim.lsp.enable('typst_lsp')
Default config:
- cmd: >lua
{ "typst-lsp" }
- filetypes: >lua
{ "typst" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
uiua
https://github.com/uiua-lang/uiua/
The builtin language server of the Uiua interpreter.
The Uiua interpreter can be installed with `cargo install uiua`
Snippet to enable the language server: >lua
vim.lsp.enable('uiua')
Default config:
- cmd: >lua
{ "uiua", "lsp" }
- filetypes: >lua
{ "uiua" }
- root_markers: >lua
{ "main.ua", ".fmt.ua", ".git" }
<
------------------------------------------------------------------------------
ungrammar_languageserver
https://github.com/binhtran432k/ungrammar-language-features
Language Server for Ungrammar.
Ungrammar Language Server can be installed via npm >sh
npm i ungrammar-languageserver -g
Snippet to enable the language server: >lua
vim.lsp.enable('ungrammar_languageserver')
Default config:
- cmd: >lua
{ "ungrammar-languageserver", "--stdio" }
- filetypes: >lua
{ "ungrammar" }
- root_markers: >lua
{ ".git" }
- settings: >lua
{
ungrammar = {
format = {
enable = true
},
validate = {
enable = true
}
}
}
<
------------------------------------------------------------------------------
unison
https://github.com/unisonweb/unison/blob/trunk/docs/language-server.markdown
Snippet to enable the language server: >lua
vim.lsp.enable('unison')
Default config:
- cmd: >lua
{ "nc", "localhost", "5757" }
- filetypes: >lua
{ "unison" }
- root_dir (use "gF" to view): ../lsp/unison.lua:8
- settings: >lua
{}
<
------------------------------------------------------------------------------
unocss
https://github.com/xna00/unocss-language-server
UnoCSS Language Server can be installed via npm >sh
npm i unocss-language-server -g
Snippet to enable the language server: >lua
vim.lsp.enable('unocss')
Default config:
- cmd: >lua
{ "unocss-language-server", "--stdio" }
- filetypes: >lua
{ "erb", "haml", "hbs", "html", "css", "postcss", "javascript", "javascriptreact", "markdown", "ejs", "php", "svelte", "typescript", "typescriptreact", "vue-html", "vue", "sass", "scss", "less", "stylus", "astro", "rescript", "rust" }
- root_markers: >lua
{ "unocss.config.js", "unocss.config.ts", "uno.config.js", "uno.config.ts" }
- `workspace_required` : `true`
<
------------------------------------------------------------------------------
uvls
https://codeberg.org/caradhras/uvls
Language server for UVL, written using tree sitter and rust.
You can install the server easily using cargo >sh
git clone https://codeberg.org/caradhras/uvls
cd uvls
cargo install --path .
Note: To activate properly nvim needs to know the uvl filetype.
You can add it via >lua
vim.cmd([[au BufRead,BufNewFile *.uvl setfiletype uvl]])
Snippet to enable the language server: >lua
vim.lsp.enable('uvls')
Default config:
- cmd: >lua
{ "uvls" }
- filetypes: >lua
{ "uvl" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
v_analyzer
https://github.com/vlang/v-analyzer
V language server.
`v-analyzer` can be installed by following the instructions [here](https://github.com/vlang/v-analyzer#installation).
Snippet to enable the language server: >lua
vim.lsp.enable('v_analyzer')
Default config:
- cmd: >lua
{ "v-analyzer" }
- filetypes: >lua
{ "v", "vsh", "vv" }
- root_markers: >lua
{ "v.mod", ".git" }
<
------------------------------------------------------------------------------
vacuum
Vacuum is the worlds fastest OpenAPI 3, OpenAPI 2 / Swagger linter and quality analysis tool.
You can install vacuum using mason or follow the instructions here: https://github.com/daveshanley/vacuum
The file types are not detected automatically, you can register them manually (see below) or override the filetypes:
```lua
vim.filetype.add {
pattern = {
['openapi.*%.ya?ml'] = 'yaml.openapi',
['openapi.*%.json'] = 'json.openapi',
},
}
```
Snippet to enable the language server: >lua
vim.lsp.enable('vacuum')
Default config:
- cmd: >lua
{ "vacuum", "language-server" }
- filetypes: >lua
{ "yaml.openapi", "json.openapi" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
vala_ls
https://github.com/Prince781/vala-language-server
Snippet to enable the language server: >lua
vim.lsp.enable('vala_ls')
Default config:
- cmd: >lua
{ "vala-language-server" }
- filetypes: >lua
{ "vala", "genie" }
- root_dir (use "gF" to view): ../lsp/vala_ls.lua:27
<
------------------------------------------------------------------------------
vale_ls
https://github.com/errata-ai/vale-ls
An implementation of the Language Server Protocol (LSP) for the Vale command-line tool.
Snippet to enable the language server: >lua
vim.lsp.enable('vale_ls')
Default config:
- cmd: >lua
{ "vale-ls" }
- filetypes: >lua
{ "asciidoc", "markdown", "text", "tex", "rst", "html", "xml" }
- root_markers: >lua
{ ".vale.ini" }
<
------------------------------------------------------------------------------
vectorcode_server
https://github.com/Davidyz/VectorCode
A Language Server Protocol implementation for VectorCode, a code repository indexing tool.
Snippet to enable the language server: >lua
vim.lsp.enable('vectorcode_server')
Default config:
- cmd: >lua
{ "vectorcode-server" }
- root_dir (use "gF" to view): ../lsp/vectorcode_server.lua:7
- settings: >lua
{}
<
------------------------------------------------------------------------------
verible
https://github.com/chipsalliance/verible
A linter and formatter for verilog and SystemVerilog files.
Release binaries can be downloaded from [here](https://github.com/chipsalliance/verible/releases)
and placed in a directory on PATH.
See https://github.com/chipsalliance/verible/tree/master/verilog/tools/ls/README.md for options.
Snippet to enable the language server: >lua
vim.lsp.enable('verible')
Default config:
- cmd: >lua
{ "verible-verilog-ls" }
- filetypes: >lua
{ "systemverilog", "verilog" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
veridian
https://github.com/vivekmalneedi/veridian
A SystemVerilog LanguageServer.
Download the latest release for your OS from the releases page
Install with slang feature, if C++17 compiler is available:>
cargo install --git https://github.com/vivekmalneedi/veridian.git --all-features
Install if C++17 compiler is not available:>
cargo install --git https://github.com/vivekmalneedi/veridian.git
Snippet to enable the language server: >lua
vim.lsp.enable('veridian')
Default config:
- cmd: >lua
{ "veridian" }
- filetypes: >lua
{ "systemverilog", "verilog" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
veryl_ls
https://github.com/veryl-lang/veryl
Language server for Veryl
`veryl-ls` can be installed via `cargo`:
```sh
cargo install veryl-ls
```
Snippet to enable the language server: >lua
vim.lsp.enable('veryl_ls')
Default config:
- cmd: >lua
{ "veryl-ls" }
- filetypes: >lua
{ "veryl" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
vespa_ls
https://github.com/vespa-engine/vespa/tree/master/integration/schema-language-server
Vespa Language Server provides LSP features such as completion, diagnostics,
and go-to-definition for Vespa schema files (`.sd`), profile files (`.profile`),
and YQL query files (`.yql`).
This language server requires Java 17 or higher. You can build the jar from source.
You can override the default command by manually configuring it like this:
>lua
vim.lsp.config('vespa_ls', {
cmd = { 'java', '-jar', '/path/to/vespa-language-server.jar' },
})
The project root is determined based on the presence of a `.git` directory.
To make Neovim recognize the proper filetypes, add the following setting in `init.lua`:
vim.filetype.add {
extension = {
profile = 'sd',
sd = 'sd',
yql = 'yql',
},
}
Snippet to enable the language server: >lua
vim.lsp.enable('vespa_ls')
Default config:
- cmd: >lua
{ "java", "-jar", "vespa-language-server.jar" }
- filetypes: >lua
{ "sd", "profile", "yql" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
vhdl_ls
Install vhdl_ls from https://github.com/VHDL-LS/rust_hdl and add it to path
Configuration
The language server needs to know your library mapping to perform full analysis of the code. For this it uses a configuration file in the TOML format named vhdl_ls.toml.
vhdl_ls will load configuration files in the following order of priority (first to last):
A file named .vhdl_ls.toml in the user home folder.
A file name from the VHDL_LS_CONFIG environment variable.
A file named vhdl_ls.toml in the workspace root.
Settings in a later files overwrites those from previously loaded files.
Example vhdl_ls.toml>
# File names are either absolute or relative to the parent folder of the vhdl_ls.toml file
[libraries]
lib2.files = [
'pkg2.vhd',
]
lib1.files = [
'pkg1.vhd',
'tb_ent.vhd'
]
Snippet to enable the language server: >lua
vim.lsp.enable('vhdl_ls')
Default config:
- cmd: >lua
{ "vhdl_ls" }
- filetypes: >lua
{ "vhd", "vhdl" }
- root_markers: >lua
{ "vhdl_ls.toml", ".vhdl_ls.toml" }
<
------------------------------------------------------------------------------
vimls
https://github.com/iamcco/vim-language-server
You can install vim-language-server via npm >sh
npm install -g vim-language-server
Snippet to enable the language server: >lua
vim.lsp.enable('vimls')
Default config:
- cmd: >lua
{ "vim-language-server", "--stdio" }
- filetypes: >lua
{ "vim" }
- init_options: >lua
{
diagnostic = {
enable = true
},
indexes = {
count = 3,
gap = 100,
projectRootPatterns = { "runtime", "nvim", ".git", "autoload", "plugin" },
runtimepath = true
},
isNeovim = true,
iskeyword = "@,48-57,_,192-255,-#",
runtimepath = "",
suggest = {
fromRuntimepath = true,
fromVimruntime = true
},
vimruntime = ""
}
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
visualforce_ls
https://github.com/forcedotcom/salesforcedx-vscode
Language server for Visualforce.
For manual installation, download the .vsix archive file from the
[forcedotcom/salesforcedx-vscode](https://github.com/forcedotcom/salesforcedx-vscode)
GitHub releases. Then, configure `cmd` to run the Node script at the unpacked location:
>lua
vim.lsp.config('visualforce_ls', {
cmd = {
'node',
'/path/to/unpacked/archive/extension/node_modules/@salesforce/salesforcedx-visualforce-language-server/out/src/visualforceServer.js',
'--stdio'
}
})
Snippet to enable the language server: >lua
vim.lsp.enable('visualforce_ls')
Default config:
- filetypes: >lua
{ "visualforce" }
- init_options: >lua
{
embeddedLanguages = {
css = true,
javascript = true
}
}
- root_markers: >lua
{ "sfdx-project.json" }
<
------------------------------------------------------------------------------
vls
https://github.com/vlang/vls
V language server.
`v-language-server` can be installed by following the instructions [here](https://github.com/vlang/vls#installation).
Snippet to enable the language server: >lua
vim.lsp.enable('vls')
Default config:
- cmd: >lua
{ "v", "ls" }
- filetypes: >lua
{ "v", "vlang" }
- root_markers: >lua
{ "v.mod", ".git" }
<
------------------------------------------------------------------------------
volar
Renamed to [vue_ls](#vue_ls)
Snippet to enable the language server: >lua
vim.lsp.enable('volar')
Default config:
- cmd: >lua
{ "vue-language-server", "--stdio" }
- filetypes: >lua
{ "vue" }
- name: >lua
"vue_ls"
- on_init (use "gF" to view): ../lsp/volar.lua:9
- root_markers: >lua
{ "package.json" }
<
------------------------------------------------------------------------------
vscoqtop
Renamed to [vsrocq](#vsrocq)
Snippet to enable the language server: >lua
vim.lsp.enable('vscoqtop')
Default config:
- cmd: >lua
{ "vsrocqtop" }
- filetypes: >lua
{ "coq" }
- name: >lua
"vsrocq"
- root_markers: >lua
{ "_RocqProject", "_CoqProject", ".git" }
<
------------------------------------------------------------------------------
vsrocq
https://github.com/rocq-prover/vsrocq
Snippet to enable the language server: >lua
vim.lsp.enable('vsrocq')
Default config:
- cmd: >lua
{ "vsrocqtop" }
- filetypes: >lua
{ "coq" }
- root_markers: >lua
{ "_RocqProject", "_CoqProject", ".git" }
<
------------------------------------------------------------------------------
vtsls
https://github.com/yioneko/vtsls
`vtsls` can be installed with npm >sh
npm install -g @vtsls/language-server
To configure a TypeScript project, add a
[`tsconfig.json`](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html)
or [`jsconfig.json`](https://code.visualstudio.com/docs/languages/jsconfig) to
the root of your project.
### Vue support
Since v3.0.0, the Vue language server requires `vtsls` to support TypeScript.
>
-- If you are using mason.nvim, you can get the ts_plugin_path like this
-- For Mason v1,
-- local mason_registry = require('mason-registry')
-- local vue_language_server_path = mason_registry.get_package('vue-language-server'):get_install_path() .. '/node_modules/@vue/language-server'
-- For Mason v2,
-- local vue_language_server_path = vim.fn.expand '$MASON/packages' .. '/vue-language-server' .. '/node_modules/@vue/language-server'
-- or even
-- local vue_language_server_path = vim.fn.stdpath('data') .. "/mason/packages/vue-language-server/node_modules/@vue/language-server"
local vue_language_server_path = '/path/to/@vue/language-server'
local vue_plugin = {
name = '@vue/typescript-plugin',
location = vue_language_server_path,
languages = { 'vue' },
configNamespace = 'typescript',
}
vim.lsp.config('vtsls', {
settings = {
vtsls = {
tsserver = {
globalPlugins = {
vue_plugin,
},
},
},
},
filetypes = { 'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue' },
})
- `location` MUST be defined. If the plugin is installed in `node_modules`, `location` can have any value.
- `languages` must include vue even if it is listed in filetypes.
- `filetypes` is extended here to include Vue SFC.
You must make sure the Vue language server is setup. For example,
>
vim.lsp.enable('vue_ls')
See `vue_ls` section and https://github.com/vuejs/language-tools/wiki/Neovim for more information.
### Monorepo support
`vtsls` supports monorepos by default. It will automatically find the `tsconfig.json` or `jsconfig.json` corresponding to the package you are working on.
This works without the need of spawning multiple instances of `vtsls`, saving memory.
It is recommended to use the same version of TypeScript in all packages, and therefore have it available in your workspace root. The location of the TypeScript binary will be determined automatically, but only once.
Snippet to enable the language server: >lua
vim.lsp.enable('vtsls')
Default config:
- cmd: >lua
{ "vtsls", "--stdio" }
- filetypes: >lua
{ "javascript", "javascriptreact", "javascript.jsx", "typescript", "typescriptreact", "typescript.tsx" }
- init_options: >lua
{
hostInfo = "neovim"
}
- root_dir (use "gF" to view): ../lsp/vtsls.lua:69
<
------------------------------------------------------------------------------
vue_ls
https://github.com/vuejs/language-tools/tree/master/packages/language-server
The official language server for Vue
It can be installed via npm >sh
npm install -g @vue/language-server
The language server only supports Vue 3 projects by default.
For Vue 2 projects, [additional configuration](https://github.com/vuejs/language-tools/blob/master/extensions/vscode/README.md?plain=1#L19) are required.
The Vue language server works in "hybrid mode" that exclusively manages the CSS/HTML sections.
You need the `vtsls` server with the `@vue/typescript-plugin` plugin to support TypeScript in `.vue` files.
See `vtsls` section and https://github.com/vuejs/language-tools/wiki/Neovim for more information.
NOTE: Since v3.0.0, the Vue Language Server [no longer supports takeover mode](https://github.com/vuejs/language-tools/pull/5248).
Snippet to enable the language server: >lua
vim.lsp.enable('vue_ls')
Default config:
- cmd: >lua
{ "vue-language-server", "--stdio" }
- filetypes: >lua
{ "vue" }
- on_init (use "gF" to view): ../lsp/vue_ls.lua:22
- root_markers: >lua
{ "package.json" }
<
------------------------------------------------------------------------------
wasm_language_tools
https://github.com/g-plane/wasm-language-tools
WebAssembly Language Tools aims to provide and improve the editing experience of WebAssembly Text Format.
It also provides an out-of-the-box formatter (a.k.a. pretty printer) for WebAssembly Text Format.
Snippet to enable the language server: >lua
vim.lsp.enable('wasm_language_tools')
Default config:
- cmd: >lua
{ "wat_server" }
- filetypes: >lua
{ "wat" }
<
------------------------------------------------------------------------------
wc_language_server
https://github.com/wc-toolkit/wc-language-server
Web Components Language Server provides intelligent editor support for Web Components and custom elements.
It offers advanced HTML diagnostics, completion, and validation for custom elements, including support for
attribute types, deprecation, and duplicate attribute detection.
The language server uses the [Custom Elements Manifest](https://github.com/webcomponents/custom-elements-manifest)
to generate component integration and validation information
`wc-language-server` can be installed by following the instructions at the [GitHub repository](https://github.com/wc-toolkit/wc-language-server/blob/main/packages/neovim/README.md).
The default `cmd` assumes that the `wc-language-server` binary can be found in `$PATH`.
Alternatively, you can install it via [mason.nvim](https://github.com/williamboman/mason.nvim) >vim
:MasonInstall wc-language-server
## Configuration
The language server reads settings from `wc.config.js` (or `.ts/.mjs/.cjs`) at the project root.
Use it to customize manifest sources, file scoping, and diagnostic behavior.
Example `wc.config.js` >js
export default {
// Fetch manifest from a custom path or URL
manifestSrc: './dist/custom-elements.json',
// Narrow which files opt into the language server
include: ['src/**/*.ts', 'src/**/*.html'],
// Skip specific globs
exclude: ['**/*.stories.ts'],
// Per-library overrides
libraries: {
'@your/pkg': {
manifestSrc: 'https://cdn.example.com/custom-elements.json',
tagFormatter: (tag) => tag.replace(/^x-/, 'my-'),
},
},
// Customize diagnostic severity levels
diagnosticSeverity: {
duplicateAttribute: 'warning',
unknownElement: 'info',
},
};
See the [configuration documentation](https://github.com/wc-toolkit/wc-language-server#configuration) for more details.
Snippet to enable the language server: >lua
vim.lsp.enable('wc_language_server')
Default config:
- cmd: >lua
{ "wc-language-server", "--stdio" }
- filetypes: >lua
{ "html", "javascriptreact", "typescriptreact", "astro", "svelte", "vue", "markdown", "mdx", "javascript", "typescript", "css", "scss", "less" }
- init_options: >lua
{
hostInfo = "neovim"
}
- root_markers: >lua
{ "wc.config.js", "wc.config.ts", "wc.config.mjs", "wc.config.cjs", "custom-elements.json", "package.json", ".git" }
<
------------------------------------------------------------------------------
wgsl_analyzer
https://github.com/wgsl-analyzer/wgsl-analyzer
`wgsl-analyzer` can be installed via `cargo` >sh
cargo install --git https://github.com/wgsl-analyzer/wgsl-analyzer wgsl-analyzer
Snippet to enable the language server: >lua
vim.lsp.enable('wgsl_analyzer')
Default config:
- cmd: >lua
{ "wgsl-analyzer" }
- filetypes: >lua
{ "wgsl" }
- root_markers: >lua
{ ".git" }
- settings: >lua
{}
<
------------------------------------------------------------------------------
yamlls
https://github.com/redhat-developer/yaml-language-server
`yaml-language-server` can be installed via `yarn` >sh
yarn global add yaml-language-server
To use a schema for validation, there are two options:
1. Add a modeline to the file. A modeline is a comment of the form:
>
# yaml-language-server: $schema=<urlToTheSchema|relativeFilePath|absoluteFilePath}>
where the relative filepath is the path relative to the open yaml file, and the absolute filepath
is the filepath relative to the filesystem root ('/' on unix systems)
2. Associated a schema url, relative , or absolute (to root of project, not to filesystem root) path to
the a glob pattern relative to the detected project root. Check `:checkhealth vim.lsp` to determine the resolved project
root.
>lua
vim.lsp.config('yamlls', {
...
settings = {
yaml = {
... -- other settings. note this overrides the lspconfig defaults.
schemas = {
["https://json.schemastore.org/github-workflow.json"] = "/.github/workflows/*",
["../path/relative/to/file.yml"] = "/.github/workflows/*",
["/path/from/root/of/project"] = "/.github/workflows/*",
},
},
}
})
Currently, kubernetes is special-cased in yammls, see the following upstream issues:
* [#211](https://github.com/redhat-developer/yaml-language-server/issues/211).
* [#307](https://github.com/redhat-developer/yaml-language-server/issues/307).
To override a schema to use a specific k8s schema version (for example, to use 1.18):
>lua
vim.lsp.config('yamlls', {
...
settings = {
yaml = {
... -- other settings. note this overrides the lspconfig defaults.
schemas = {
["https://raw.githubusercontent.com/yannh/kubernetes-json-schema/refs/heads/master/v1.32.1-standalone-strict/all.json"] = "/*.k8s.yaml",
... -- other schemas
},
},
}
})
Snippet to enable the language server: >lua
vim.lsp.enable('yamlls')
Default config:
- cmd: >lua
{ "yaml-language-server", "--stdio" }
- filetypes: >lua
{ "yaml", "yaml.docker-compose", "yaml.gitlab", "yaml.helm-values" }
- on_init (use "gF" to view): ../lsp/yamlls.lua:63
- root_markers: >lua
{ ".git" }
- settings: >lua
{
redhat = {
telemetry = {
enabled = false
}
},
yaml = {
format = {
enable = true
}
}
}
<
------------------------------------------------------------------------------
yang_lsp
https://github.com/TypeFox/yang-lsp
A Language Server for the YANG data modeling language.
Snippet to enable the language server: >lua
vim.lsp.enable('yang_lsp')
Default config:
- cmd: >lua
{ "yang-language-server" }
- filetypes: >lua
{ "yang" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
yls
https://pypi.org/project/yls-yara/
An YLS plugin adding YARA linting capabilities.
This plugin runs yara.compile on every save, parses the errors, and returns list of diagnostic messages.
Language Server: https://github.com/avast/yls
Snippet to enable the language server: >lua
vim.lsp.enable('yls')
Default config:
- cmd: >lua
{ "yls", "-vv" }
- filetypes: >lua
{ "yar", "yara" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
ziggy
https://ziggy-lang.io/documentation/ziggy-lsp/
Language server for the Ziggy data serialization format
Snippet to enable the language server: >lua
vim.lsp.enable('ziggy')
Default config:
- cmd: >lua
{ "ziggy", "lsp" }
- filetypes: >lua
{ "ziggy" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
ziggy_schema
https://ziggy-lang.io/documentation/ziggy-lsp/
Language server for schema files of the Ziggy data serialization format
Snippet to enable the language server: >lua
vim.lsp.enable('ziggy_schema')
Default config:
- cmd: >lua
{ "ziggy", "lsp", "--schema" }
- filetypes: >lua
{ "ziggy_schema" }
- root_markers: >lua
{ ".git" }
<
------------------------------------------------------------------------------
zk
https://github.com/zk-org/zk
A plain text note-taking assistant
Snippet to enable the language server: >lua
vim.lsp.enable('zk')
Default config:
- cmd: >lua
{ "zk", "lsp" }
- filetypes: >lua
{ "markdown" }
- on_attach (use "gF" to view): ../lsp/zk.lua:40
- root_markers: >lua
{ ".zk" }
- `workspace_required` : `true`
<
------------------------------------------------------------------------------
zls
https://github.com/zigtools/zls
Zig LSP implementation + Zig Language Server
Snippet to enable the language server: >lua
vim.lsp.enable('zls')
Default config:
- cmd: >lua
{ "zls" }
- filetypes: >lua
{ "zig", "zir" }
- root_markers: >lua
{ "zls.json", "build.zig", ".git" }
- `workspace_required` : `false`
<
------------------------------------------------------------------------------
zuban
https://zubanls.com/
A high-performance Python Language Server and type checker implemented in Rust, by the author of Jedi.
Snippet to enable the language server: >lua
vim.lsp.enable('zuban')
Default config:
- cmd: >lua
{ "zuban", "server" }
- filetypes: >lua
{ "python" }
- root_markers: >lua
{ "pyproject.toml", "setup.py", "setup.cfg", "requirements.txt", "Pipfile", ".git" }
<
==============================================================================
vim:tw=78:ft=help:norl:expandtab:sw=4
|