Skip to content

Commit 094ab82

Browse files
authored
Merge branch 'master' into master
2 parents af22c7f + e947649 commit 094ab82

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

init.lua

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -502,16 +502,14 @@ require('lazy').setup({
502502
-- have a well standardized coding style. You can add additional
503503
-- languages here or re-enable it for the disabled ones.
504504
local disable_filetypes = { c = true, cpp = true }
505-
local lsp_format_opt
506505
if disable_filetypes[vim.bo[bufnr].filetype] then
507-
lsp_format_opt = 'never'
506+
return nil
508507
else
509-
lsp_format_opt = 'fallback'
508+
return {
509+
timeout_ms = 500,
510+
lsp_format = 'fallback',
511+
}
510512
end
511-
return {
512-
timeout_ms = 500,
513-
lsp_format = lsp_format_opt,
514-
}
515513
end,
516514
formatters_by_ft = {
517515
lua = { 'stylua' },

0 commit comments

Comments
 (0)