File tree Expand file tree Collapse file tree 3 files changed +0
-42
lines changed Expand file tree Collapse file tree 3 files changed +0
-42
lines changed Original file line number Diff line number Diff line change @@ -64,20 +64,6 @@ return {
64
64
return
65
65
end
66
66
67
- -- We know that the buffer is using Typescript if it has a config file
68
- -- in its directory tree.
69
- local ts_config_files = { ' tsconfig.json' , ' jsconfig.json' }
70
- local is_buffer_using_typescript = vim .fs .find (ts_config_files , {
71
- path = vim .api .nvim_buf_get_name (bufnr ),
72
- type = ' file' ,
73
- limit = 1 ,
74
- upward = true ,
75
- stop = vim .fs .dirname (project_root ),
76
- })[1 ]
77
- if not is_buffer_using_typescript then
78
- return
79
- end
80
-
81
67
on_dir (project_root )
82
68
end ,
83
69
handlers = {
Original file line number Diff line number Diff line change @@ -35,20 +35,6 @@ return {
35
35
return
36
36
end
37
37
38
- -- We know that the buffer is using Typescript if it has a config file
39
- -- in its directory tree.
40
- local ts_config_files = { ' tsconfig.json' , ' jsconfig.json' }
41
- local is_buffer_using_typescript = vim .fs .find (ts_config_files , {
42
- path = vim .api .nvim_buf_get_name (bufnr ),
43
- type = ' file' ,
44
- limit = 1 ,
45
- upward = true ,
46
- stop = vim .fs .dirname (project_root ),
47
- })[1 ]
48
- if not is_buffer_using_typescript then
49
- return
50
- end
51
-
52
38
on_dir (project_root )
53
39
end ,
54
40
}
Original file line number Diff line number Diff line change @@ -87,20 +87,6 @@ return {
87
87
return
88
88
end
89
89
90
- -- We know that the buffer is using Typescript if it has a config file
91
- -- in its directory tree.
92
- local ts_config_files = { ' tsconfig.json' , ' jsconfig.json' }
93
- local is_buffer_using_typescript = vim .fs .find (ts_config_files , {
94
- path = vim .api .nvim_buf_get_name (bufnr ),
95
- type = ' file' ,
96
- limit = 1 ,
97
- upward = true ,
98
- stop = vim .fs .dirname (project_root ),
99
- })[1 ]
100
- if not is_buffer_using_typescript then
101
- return
102
- end
103
-
104
90
on_dir (project_root )
105
91
end ,
106
92
}
You can’t perform that action at this time.
0 commit comments