nvim/lua/lsp/formatting.lua

9 lines
168 B
Lua

local lsp_formatting = function(bufnr)
vim.lsp.buf.format {
bufnr = bufnr,
timeout_ms = 2000,
async = true,
}
end
return lsp_formatting