Allow formatting with any installed language server
This commit is contained in:
parent
cd7898ef94
commit
f0eea8a951
|
@ -1,9 +1,8 @@
|
|||
local lsp_formatting = function(bufnr)
|
||||
vim.lsp.buf.format {
|
||||
filter = function(client) return client.name == "null-ls" end,
|
||||
bufnr = bufnr,
|
||||
timeout_ms = 2000,
|
||||
-- async = true,
|
||||
async = true,
|
||||
}
|
||||
end
|
||||
return lsp_formatting
|
||||
|
|
Loading…
Reference in a new issue