aboutsummaryrefslogtreecommitdiffstats
path: root/lsp/ts_ls.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lsp/ts_ls.lua')
-rw-r--r--lsp/ts_ls.lua14
1 files changed, 0 insertions, 14 deletions
diff --git a/lsp/ts_ls.lua b/lsp/ts_ls.lua
index b5ce0158..256b1132 100644
--- a/lsp/ts_ls.lua
+++ b/lsp/ts_ls.lua
@@ -64,20 +64,6 @@ return {
return
end
- -- We know that the buffer is using Typescript if it has a config file
- -- in its directory tree.
- local ts_config_files = { 'tsconfig.json', 'jsconfig.json' }
- local is_buffer_using_typescript = vim.fs.find(ts_config_files, {
- path = vim.api.nvim_buf_get_name(bufnr),
- type = 'file',
- limit = 1,
- upward = true,
- stop = vim.fs.dirname(project_root),
- })[1]
- if not is_buffer_using_typescript then
- return
- end
-
on_dir(project_root)
end,
handlers = {