diff options
| author | dundargoc <gocdundar@gmail.com> | 2025-01-22 14:20:49 +0100 |
|---|---|---|
| committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2025-01-22 16:28:20 +0100 |
| commit | 513f4f0bde469ecb3abe2e1b606f63cf142e751e (patch) | |
| tree | f1a4108872b8c3c668f5827a21f9b479250ef261 /lua/lspconfig/configs/relay_lsp.lua | |
| parent | docs: fix typo (diff) | |
| download | nvim-lspconfig-1.4.0.tar nvim-lspconfig-1.4.0.tar.gz nvim-lspconfig-1.4.0.tar.bz2 nvim-lspconfig-1.4.0.tar.lz nvim-lspconfig-1.4.0.tar.xz nvim-lspconfig-1.4.0.tar.zst nvim-lspconfig-1.4.0.zip | |
fix: fix incorrect root findingv1.4.0
Diffstat (limited to 'lua/lspconfig/configs/relay_lsp.lua')
| -rw-r--r-- | lua/lspconfig/configs/relay_lsp.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lspconfig/configs/relay_lsp.lua b/lua/lspconfig/configs/relay_lsp.lua index 78ec20a0..cc8e2c5b 100644 --- a/lua/lspconfig/configs/relay_lsp.lua +++ b/lua/lspconfig/configs/relay_lsp.lua @@ -23,7 +23,7 @@ return { }, root_dir = util.root_pattern('relay.config.*', 'package.json'), on_new_config = function(config, root_dir) - local project_root = vim.fs.find('node_modules', { path = root_dir, upward = true })[1] + local project_root = vim.fs.dirname(vim.fs.find('node_modules', { path = root_dir, upward = true })[1]) local node_bin_path = project_root .. '/node_modules/.bin' local compiler_cmd = { node_bin_path .. '/relay-compiler', '--watch' } local path = node_bin_path .. (vim.fn.has('win32') == 1 and ';' or ':') .. vim.env.PATH |
