From 0dc132f9f2b3a99ee68bc1479451496d37c279ae Mon Sep 17 00:00:00 2001 From: Victor Accarini <5943663+victor-accarini@users.noreply.github.com> Date: Tue, 30 Dec 2025 03:59:51 -0300 Subject: fix(biome): avoid false-positive root_dir matches #4261 Problem: Biome server becomes active if biome appears as a substring in package.json, even when biome is not being used. Solution: Since biome is behind the `@biomejs` namespace we can narrow its activation by appending `js` in the searched term. --- lsp/biome.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lsp/biome.lua b/lsp/biome.lua index 230ec99e..3ea79189 100644 --- a/lsp/biome.lua +++ b/lsp/biome.lua @@ -61,7 +61,7 @@ return { -- in its directory tree. local filename = vim.api.nvim_buf_get_name(bufnr) local biome_config_files = { 'biome.json', 'biome.jsonc' } - biome_config_files = util.insert_package_json(biome_config_files, 'biome', filename) + biome_config_files = util.insert_package_json(biome_config_files, 'biomejs', filename) local is_buffer_using_biome = vim.fs.find(biome_config_files, { path = filename, type = 'file', -- cgit v1.2.3-70-g09d2