diff options
| author | Igor <igorlfs@ufmg.br> | 2025-08-18 23:41:27 -0300 |
|---|---|---|
| committer | Igor <igorlfs@ufmg.br> | 2025-08-18 23:41:27 -0300 |
| commit | ec27b247a5e25f6997b66aee30090eda18efaa27 (patch) | |
| tree | 6430c1e4e840c0936a6796009fcc3b6cd509e0e8 /lsp/ts_ls.lua | |
| parent | chore: add type annotation for configs (diff) | |
| download | nvim-lspconfig-ec27b247a5e25f6997b66aee30090eda18efaa27.tar nvim-lspconfig-ec27b247a5e25f6997b66aee30090eda18efaa27.tar.gz nvim-lspconfig-ec27b247a5e25f6997b66aee30090eda18efaa27.tar.bz2 nvim-lspconfig-ec27b247a5e25f6997b66aee30090eda18efaa27.tar.lz nvim-lspconfig-ec27b247a5e25f6997b66aee30090eda18efaa27.tar.xz nvim-lspconfig-ec27b247a5e25f6997b66aee30090eda18efaa27.tar.zst nvim-lspconfig-ec27b247a5e25f6997b66aee30090eda18efaa27.zip | |
chore: miscellaneous type fixes
Diffstat (limited to 'lsp/ts_ls.lua')
| -rw-r--r-- | lsp/ts_ls.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lsp/ts_ls.lua b/lsp/ts_ls.lua index ddea6f53..b5ce0158 100644 --- a/lsp/ts_ls.lua +++ b/lsp/ts_ls.lua @@ -61,7 +61,7 @@ return { local project_root_markers = { 'package-lock.json', 'yarn.lock', 'pnpm-lock.yaml', 'bun.lockb', 'bun.lock' } local project_root = vim.fs.root(bufnr, project_root_markers) if not project_root then - return nil + return end -- We know that the buffer is using Typescript if it has a config file @@ -75,7 +75,7 @@ return { stop = vim.fs.dirname(project_root), })[1] if not is_buffer_using_typescript then - return nil + return end on_dir(project_root) |
