mirror of
https://github.com/zoriya/flake.git
synced 2025-12-06 06:36:19 +00:00
17 lines
438 B
Lua
17 lines
438 B
Lua
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 {
|
|
-- Disable lunching from node_modules (no nix binary)
|
|
cmd = { "biome", "lsp-proxy" },
|
|
-- for json files
|
|
workspace_required = false,
|
|
}
|