Disable on type formatting of biome

This commit is contained in:
2025-10-26 11:41:08 +01:00
parent e637e48a66
commit c3f1877067

View File

@@ -1,3 +1,13 @@
vim.api.nvim_create_autocmd('LspAttach', {
callback = function(args)
local client_id = args.data.client_id
local client = assert(vim.lsp.get_client_by_id(client_id))
if client.name == 'biome' then
vim.lsp.on_type_formatting.enable(false, { client_id = client_id })
end
end,
})
return { return {
-- Disable lunching from node_modules (no nix binary) -- Disable lunching from node_modules (no nix binary)
cmd = { "biome", "lsp-proxy" }, cmd = { "biome", "lsp-proxy" },