diff options
| author | Victor Accarini <5943663+victor-accarini@users.noreply.github.com> | 2025-12-30 03:59:51 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-30 01:59:51 -0500 |
| commit | 0dc132f9f2b3a99ee68bc1479451496d37c279ae (patch) | |
| tree | f6a259e997fadb18f86e06015403867b73658430 | |
| parent | docs: update configs.md (diff) | |
| download | nvim-lspconfig-0dc132f9f2b3a99ee68bc1479451496d37c279ae.tar nvim-lspconfig-0dc132f9f2b3a99ee68bc1479451496d37c279ae.tar.gz nvim-lspconfig-0dc132f9f2b3a99ee68bc1479451496d37c279ae.tar.bz2 nvim-lspconfig-0dc132f9f2b3a99ee68bc1479451496d37c279ae.tar.lz nvim-lspconfig-0dc132f9f2b3a99ee68bc1479451496d37c279ae.tar.xz nvim-lspconfig-0dc132f9f2b3a99ee68bc1479451496d37c279ae.tar.zst nvim-lspconfig-0dc132f9f2b3a99ee68bc1479451496d37c279ae.zip | |
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.
| -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 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', |
