1
0
Fork 0
mirror of https://codeberg.org/Mo8it/dotfiles.git synced 2024-12-02 23:33:05 +00:00
This commit is contained in:
Mo 2022-08-22 00:09:10 +02:00
parent b96d03cc30
commit 5aa7a1b65a
2 changed files with 3 additions and 2 deletions

View file

@ -2,6 +2,8 @@ local o = vim.o
--
o.mouse = ""
o.expandtab = true
o.tabstop = 4
o.shiftwidth = 4

View file

@ -17,8 +17,7 @@ local function format_on_save(client, bufnr)
group = formatting_augroup,
buffer = bufnr,
callback = function()
-- NOTE: On 0.8, use vim.lsp.buf.format({ bufnr = bufnr }) instead
vim.lsp.buf.formatting_sync(nil, 60000)
vim.lsp.buf.format({ bufnr = bufnr, timeout_ms = 60000 })
end,
})
end