1
0
Fork 0
mirror of https://codeberg.org/Mo8it/dotfiles.git synced 2024-12-04 23:40:32 +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.expandtab = true
o.tabstop = 4 o.tabstop = 4
o.shiftwidth = 4 o.shiftwidth = 4

View file

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