From 24edc2b87786b921276d092d9e7d8202d0cdf259 Mon Sep 17 00:00:00 2001 From: Chris Grieser <73286100+chrisgrieser@users.noreply.github.com> Date: Sat, 19 Jul 2025 17:29:49 +0200 Subject: fix(biome): error when using non-local biome binary #3962 --- lsp/biome.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2