Fully use biome as an lsp

This commit is contained in:
2025-08-04 17:00:20 +02:00
parent 19da9716a9
commit 3db690d653
4 changed files with 25 additions and 12 deletions
-11
View File
@@ -15,13 +15,6 @@ return {
default_format_opts = { async = true },
formatters_by_ft = {
python = { "ruff_format", "ruff_organize_imports" },
javascript = { "biome-check", "prettierd", "prettier", stop_after_first = true },
typescript = { "biome-check", "prettierd", "prettier", stop_after_first = true },
javascriptreact = { "biome-check", "prettierd", "prettier", stop_after_first = true },
typescriptreact = { "biome-check", "prettierd", "prettier", stop_after_first = true },
json = { "biome-check", "prettierd", "prettier", stop_after_first = true },
css = { "biome-check", "prettierd", "prettier", stop_after_first = true },
html = { "biome-check", "prettierd", "prettier", stop_after_first = true },
sql = { "pg_format" },
cs = { "csharpier" },
nix = { "alejandra" },
@@ -29,10 +22,6 @@ return {
["_"] = { "injected", lsp_format = "last" },
},
formatters = {
["biome-check"] = {
-- disable node module search since native binaries can't be run from nix
command = "biome",
},
csharpier = function()
return {
command = "csharpier",