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.
1 parent da0cf40 commit f565cf1Copy full SHA for f565cf1
lua/default/plugins/autoformat.lua
@@ -22,14 +22,20 @@ return {
22
local disable_filetypes = { c = true, cpp = true }
23
local lsp_format_opt
24
if disable_filetypes[vim.bo[bufnr].filetype] then
25
- lsp_format_opt = 'never'
+ -- lsp_format_opt = 'never'
26
+ -- Configuration taken from https://github.com/nvim-lua/kickstart.nvim/pull/1395
27
+ return nil
28
else
- lsp_format_opt = 'fallback'
29
+ -- lsp_format_opt = 'fallback'
30
+ return {
31
+ timeout_ms = 500,
32
+ lsp_format = 'fallback',
33
+ }
34
end
- return {
- timeout_ms = 500,
- lsp_format = lsp_format_opt,
- }
35
+ -- return {
36
+ -- timeout_ms = 500,
37
+ -- lsp_format = lsp_format_opt,
38
+ -- }
39
end,
40
formatters_by_ft = {
41
lua = { 'stylua' },
0 commit comments