2023-02-20 11:45:08 +00:00
|
|
|
local lsp_formatting = function(bufnr)
|
|
|
|
vim.lsp.buf.format {
|
|
|
|
bufnr = bufnr,
|
|
|
|
timeout_ms = 2000,
|
2023-02-23 18:27:48 +00:00
|
|
|
async = true,
|
2023-04-05 16:40:14 +01:00
|
|
|
filter = function(client)
|
|
|
|
return client.name ~= "jedi_language_server" and client.name ~= "lua_ls"
|
|
|
|
end,
|
2023-02-20 11:45:08 +00:00
|
|
|
}
|
|
|
|
end
|
|
|
|
return lsp_formatting
|