We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents af22c7f + e947649 commit 094ab82Copy full SHA for 094ab82
init.lua
@@ -502,16 +502,14 @@ require('lazy').setup({
502
-- have a well standardized coding style. You can add additional
503
-- languages here or re-enable it for the disabled ones.
504
local disable_filetypes = { c = true, cpp = true }
505
- local lsp_format_opt
506
if disable_filetypes[vim.bo[bufnr].filetype] then
507
- lsp_format_opt = 'never'
+ return nil
508
else
509
- lsp_format_opt = 'fallback'
+ return {
+ timeout_ms = 500,
510
+ lsp_format = 'fallback',
511
+ }
512
end
- return {
- timeout_ms = 500,
513
- lsp_format = lsp_format_opt,
514
- }
515
end,
516
formatters_by_ft = {
517
lua = { 'stylua' },
0 commit comments