diff options
| author | dundargoc <gocdundar@gmail.com> | 2024-12-21 14:08:47 +0100 |
|---|---|---|
| committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2024-12-21 16:10:35 +0100 |
| commit | 45c5095097702e8316f9409b39b2721db8534db2 (patch) | |
| tree | 6004d82c4560500b2ac384deab84d1ef778dd5dc /lua/lspconfig/configs/relay_lsp.lua | |
| parent | refactor: fix luals warnings (diff) | |
| download | nvim-lspconfig-45c5095097702e8316f9409b39b2721db8534db2.tar nvim-lspconfig-45c5095097702e8316f9409b39b2721db8534db2.tar.gz nvim-lspconfig-45c5095097702e8316f9409b39b2721db8534db2.tar.bz2 nvim-lspconfig-45c5095097702e8316f9409b39b2721db8534db2.tar.lz nvim-lspconfig-45c5095097702e8316f9409b39b2721db8534db2.tar.xz nvim-lspconfig-45c5095097702e8316f9409b39b2721db8534db2.tar.zst nvim-lspconfig-45c5095097702e8316f9409b39b2721db8534db2.zip | |
refactor: deprecate util.path.join
Work on https://github.com/neovim/nvim-lspconfig/issues/2079.
Diffstat (limited to 'lua/lspconfig/configs/relay_lsp.lua')
| -rw-r--r-- | lua/lspconfig/configs/relay_lsp.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lua/lspconfig/configs/relay_lsp.lua b/lua/lspconfig/configs/relay_lsp.lua index a0ebaf63..baf5578c 100644 --- a/lua/lspconfig/configs/relay_lsp.lua +++ b/lua/lspconfig/configs/relay_lsp.lua @@ -24,8 +24,8 @@ 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 node_bin_path = util.path.join(project_root, 'node_modules', '.bin') - local compiler_cmd = { util.path.join(node_bin_path, 'relay-compiler'), '--watch' } + local node_bin_path = project_root .. '/node_modules/.bin' + local compiler_cmd = { node_bin_path .. '/relay-compiler', '--watch' } local path = node_bin_path .. util.path.path_separator .. vim.env.PATH if config.cmd_env then config.cmd_env.PATH = path @@ -35,7 +35,7 @@ return { if config.path_to_config then config.path_to_config = vim.fs.normalize(config.path_to_config) - local path_to_config = util.path.join(root_dir, config.path_to_config) + local path_to_config = table.concat({ root_dir, config.path_to_config }, '/') if vim.loop.fs_stat(path_to_config) then vim.list_extend(config.cmd, { config.path_to_config }) vim.list_extend(compiler_cmd, { config.path_to_config }) |
