diff options
Diffstat (limited to 'lsp/tsgo.lua')
| -rw-r--r-- | lsp/tsgo.lua | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/lsp/tsgo.lua b/lsp/tsgo.lua index 28cdf6b9..20730c50 100644 --- a/lsp/tsgo.lua +++ b/lsp/tsgo.lua @@ -35,20 +35,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, } |
