aboutsummaryrefslogtreecommitdiffstats
path: root/lsp/ts_ls.lua
diff options
context:
space:
mode:
authorVinícius Weigert <52323602+ViniWei@users.noreply.github.com>2025-08-19 12:25:52 -0300
committerGitHub <noreply@github.com>2025-08-19 08:25:52 -0700
commit5f1c9a90c8db9c647da40ce6cf5be9e49ccbf0c7 (patch)
tree780f1852b783a97e7abd5641d10afbd378ae8add /lsp/ts_ls.lua
parentdocs: update configs.md (diff)
downloadnvim-lspconfig-5f1c9a90c8db9c647da40ce6cf5be9e49ccbf0c7.tar
nvim-lspconfig-5f1c9a90c8db9c647da40ce6cf5be9e49ccbf0c7.tar.gz
nvim-lspconfig-5f1c9a90c8db9c647da40ce6cf5be9e49ccbf0c7.tar.bz2
nvim-lspconfig-5f1c9a90c8db9c647da40ce6cf5be9e49ccbf0c7.tar.lz
nvim-lspconfig-5f1c9a90c8db9c647da40ce6cf5be9e49ccbf0c7.tar.xz
nvim-lspconfig-5f1c9a90c8db9c647da40ce6cf5be9e49ccbf0c7.tar.zst
nvim-lspconfig-5f1c9a90c8db9c647da40ce6cf5be9e49ccbf0c7.zip
fix(ts_ls): server not starting if there is no typescript #4011
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 = {