From 5f1c9a90c8db9c647da40ce6cf5be9e49ccbf0c7 Mon Sep 17 00:00:00 2001 From: Vinícius Weigert <52323602+ViniWei@users.noreply.github.com> Date: Tue, 19 Aug 2025 12:25:52 -0300 Subject: fix(ts_ls): server not starting if there is no typescript #4011 --- lsp/ts_ls.lua | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'lsp/ts_ls.lua') 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 = { -- cgit v1.2.3-70-g09d2