File tree Expand file tree Collapse file tree 2 files changed +90
-0
lines changed
tests/test-sources/plugins/by-name/perfanno Expand file tree Collapse file tree 2 files changed +90
-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
+ { pkgs , ... } :
4
+ {
5
+ plugins . perfanno . enable = ! pkgs . stdenv . isDarwin ;
6
+ } ;
7
+
8
+ example =
9
+ { pkgs , ... } :
10
+ {
11
+ plugins . perfanno = {
12
+ enable = ! pkgs . stdenv . isDarwin ;
13
+
14
+ settings = {
15
+ line_highlights . __raw = ''util.make_bg_highlights(nil, "#CC3300", 10)'' ;
16
+ vt_highlight . __raw = ''util.make_fg_highlight("#CC3300")'' ;
17
+ formats = [
18
+ {
19
+ percent = true ;
20
+ format = "%.2f%%" ;
21
+ minimum = 0.5 ;
22
+ }
23
+ {
24
+ percent = false ;
25
+ format = "%d" ;
26
+ minimum = 1 ;
27
+ }
28
+ ] ;
29
+
30
+ annotate_after_load = true ;
31
+ annotate_on_open = true ;
32
+ telescope = {
33
+ enabled . __raw = ''pcall(require, "telescope")'' ;
34
+ annotate = true ;
35
+ } ;
36
+
37
+ ts_function_patterns = {
38
+ default = [
39
+ "function"
40
+ "method"
41
+ ] ;
42
+ weirdlang = [
43
+ "weirdfunc"
44
+ ] ;
45
+ } ;
46
+ } ;
47
+ } ;
48
+ } ;
49
+ }
You can’t perform that action at this time.
0 commit comments