null-ls and session

This commit is contained in:
markus.dieckmann
2025-10-17 15:23:13 +02:00
parent 6bdb8cca5b
commit 7dd6bd1675
7 changed files with 202 additions and 48 deletions

View File

@@ -11,6 +11,9 @@ return {
},
opts = {
async = true,
format = {
timeout_ms = 5000,
},
formatters_by_ft = {
lua = { "stylua" },
-- Conform will run multiple formatters sequentially
@@ -20,10 +23,10 @@ return {
-- Conform will run the first available formatter
javascript = { "eslint_d", "prettierd", "prettier", stop_after_first = true },
typescript = { "eslint_d", "prettierd", "prettier", stop_after_first = true },
prisma = { "null-ls", lsp_format = false },
format_on_save = {
-- These options will be passed to conform.format()
timeout_ms = 500,
lsp_format = "fallback",
timeout_ms = 5000,
},
},
},