Allow formatting with any installed language server

This commit is contained in:
Evie Litherland-Smith 2023-02-23 18:27:48 +00:00
parent cd7898ef94
commit f0eea8a951

View file

@ -1,9 +1,8 @@
local lsp_formatting = function(bufnr) local lsp_formatting = function(bufnr)
vim.lsp.buf.format { vim.lsp.buf.format {
filter = function(client) return client.name == "null-ls" end,
bufnr = bufnr, bufnr = bufnr,
timeout_ms = 2000, timeout_ms = 2000,
-- async = true, async = true,
} }
end end
return lsp_formatting return lsp_formatting