mirror of
https://codeberg.org/Mo8it/dotfiles.git
synced 2024-12-04 23:40:32 +00:00
Nvim 0.8
This commit is contained in:
parent
b96d03cc30
commit
5aa7a1b65a
2 changed files with 3 additions and 2 deletions
|
@ -2,6 +2,8 @@ local o = vim.o
|
|||
|
||||
--
|
||||
|
||||
o.mouse = ""
|
||||
|
||||
o.expandtab = true
|
||||
o.tabstop = 4
|
||||
o.shiftwidth = 4
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue