File tree Expand file tree Collapse file tree 2 files changed +92
-0
lines changed
tests/test-sources/plugins/by-name/perfanno Expand file tree Collapse file tree 2 files changed +92
-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
+ # TODO: Remove after https://github.com/NixOS/nixpkgs/pull/438707
9
+ url = "https://github.com/t-troebst/perfanno.nvim" ;
10
+
11
+ maintainers = [ lib . maintainers . fredeb ] ;
12
+
13
+ settingsExample = {
14
+ line_highlights . __raw = ''util.make_bg_highlights(nil, "#CC3300", 10)'' ;
15
+ vt_highlight . __raw = ''util.make_fg_highlight("#CC3300")'' ;
16
+ formats = [
17
+ {
18
+ percent = true ;
19
+ format = "%.2f%%" ;
20
+ minimum = 0.5 ;
21
+ }
22
+ {
23
+ percent = false ;
24
+ format = "%d" ;
25
+ minimum = 1 ;
26
+ }
27
+ ] ;
28
+
29
+ annotate_after_load = true ;
30
+ annotate_on_open = true ;
31
+ telescope = {
32
+ enabled . __raw = ''pcall(require, "telescope")'' ;
33
+ annotate = true ;
34
+ } ;
35
+
36
+ ts_function_patterns = {
37
+ default = [
38
+ "function"
39
+ "method"
40
+ ] ;
41
+ } ;
42
+ } ;
43
+ }
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