mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 08:35:48 +02:00
enc: cpp confug default
This commit is contained in:
parent
22fef75144
commit
f7c84d58f8
6 changed files with 46 additions and 39 deletions
|
@ -52,7 +52,7 @@ if pcode.active_java_config.active then
|
|||
opts = function(_, opts)
|
||||
local psave = pcode.format_on_save or 0
|
||||
opts.formatters_by_ft = opts.formatters_by_ft or {}
|
||||
opts.formatters_by_ft.java = { "google-java-format" }
|
||||
opts.formatters_by_ft.java = { "lsp_fmt" }
|
||||
if psave == 1 then
|
||||
opts.format_on_save = {
|
||||
timeout_ms = pcode.format_timeout_ms or 500,
|
||||
|
@ -68,7 +68,7 @@ if pcode.active_java_config.active then
|
|||
conform.format({
|
||||
lsp_fallback = true,
|
||||
async = false,
|
||||
timeout_ms = 500,
|
||||
timeout_ms = pcode.format_timeout_ms or 500,
|
||||
})
|
||||
end, { desc = "Format file or range (in visual mode)" })
|
||||
end,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue