diff options
| author | Chris Grieser <73286100+chrisgrieser@users.noreply.github.com> | 2025-07-19 17:29:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-19 08:29:49 -0700 |
| commit | 24edc2b87786b921276d092d9e7d8202d0cdf259 (patch) | |
| tree | fff69bdd6af4809bd9ff43e5f1993642d28ad984 | |
| parent | docs: update configs.md (diff) | |
| download | nvim-lspconfig-24edc2b87786b921276d092d9e7d8202d0cdf259.tar nvim-lspconfig-24edc2b87786b921276d092d9e7d8202d0cdf259.tar.gz nvim-lspconfig-24edc2b87786b921276d092d9e7d8202d0cdf259.tar.bz2 nvim-lspconfig-24edc2b87786b921276d092d9e7d8202d0cdf259.tar.lz nvim-lspconfig-24edc2b87786b921276d092d9e7d8202d0cdf259.tar.xz nvim-lspconfig-24edc2b87786b921276d092d9e7d8202d0cdf259.tar.zst nvim-lspconfig-24edc2b87786b921276d092d9e7d8202d0cdf259.zip | |
fix(biome): error when using non-local biome binary #3962
| -rw-r--r-- | lsp/biome.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lsp/biome.lua b/lsp/biome.lua index c6975cc5..f1087a4d 100644 --- a/lsp/biome.lua +++ b/lsp/biome.lua @@ -12,7 +12,7 @@ local util = require 'lspconfig.util' return { cmd = function(dispatchers, config) local cmd = 'biome' - local local_cmd = config.root_dir and config.root_dir .. '/node_modules/.bin/biome' + local local_cmd = (config or {}).root_dir and config.root_dir .. '/node_modules/.bin/biome' if local_cmd and vim.fn.executable(local_cmd) == 1 then cmd = local_cmd end |
