File tree Expand file tree Collapse file tree 2 files changed +86
-0
lines changed
tests/test-sources/plugins/by-name/perfanno Expand file tree Collapse file tree 2 files changed +86
-0
lines changed Original file line number Diff line number Diff line change
1
+ { lib , ... } :
2
+
3
+ lib . nixvim . plugins . mkNeovimPlugin {
4
+ name = "perfanno" ;
5
+ packPathName = "perfanno.nvim" ;
6
+ package = "perfanno-nvim" ;
7
+ description = "NeoVim lua plugin that annotates source code with profiling information from perf, LuaJIT, or other profilers." ;
8
+
9
+ maintainers = [ lib . maintainers . fredeb ] ;
10
+
11
+ settingsExample = {
12
+ line_highlights . __raw = ''util.make_bg_highlights(nil, "#CC3300", 10)'' ;
13
+ vt_highlight . __raw = ''util.make_fg_highlight("#CC3300")'' ;
14
+ formats = [
15
+ {
16
+ percent = true ;
17
+ format = "%.2f%%" ;
18
+ minimum = 0.5 ;
19
+ }
20
+ {
21
+ percent = false ;
22
+ format = "%d" ;
23
+ minimum = 1 ;
24
+ }
25
+ ] ;
26
+
27
+ annotate_after_load = true ;
28
+ annotate_on_open = true ;
29
+ telescope = {
30
+ enabled . __raw = ''pcall(require, "telescope")'' ;
31
+ annotate = true ;
32
+ } ;
33
+
34
+ ts_function_patterns = {
35
+ default = [
36
+ "function"
37
+ "method"
38
+ ] ;
39
+ } ;
40
+ } ;
41
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ empty = {
3
+ plugins . perfanno . enable = true ;
4
+ } ;
5
+
6
+ example = {
7
+ plugins . perfanno = {
8
+ enable = true ;
9
+
10
+ settings = {
11
+ line_highlights . __raw = ''util.make_bg_highlights(nil, "#CC3300", 10)'' ;
12
+ vt_highlight . __raw = ''util.make_fg_highlight("#CC3300")'' ;
13
+ formats = [
14
+ {
15
+ percent = true ;
16
+ format = "%.2f%%" ;
17
+ minimum = 0.5 ;
18
+ }
19
+ {
20
+ percent = false ;
21
+ format = "%d" ;
22
+ minimum = 1 ;
23
+ }
24
+ ] ;
25
+
26
+ annotate_after_load = true ;
27
+ annotate_on_open = true ;
28
+ telescope = {
29
+ enabled . __raw = ''pcall(require, "telescope")'' ;
30
+ annotate = true ;
31
+ } ;
32
+
33
+ ts_function_patterns = {
34
+ default = [
35
+ "function"
36
+ "method"
37
+ ] ;
38
+ weirdlang = [
39
+ "weirdfunc"
40
+ ] ;
41
+ } ;
42
+ } ;
43
+ } ;
44
+ } ;
45
+ }
You can’t perform that action at this time.
0 commit comments