You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lua/core/globals.lua
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ Langs = {
63
63
},
64
64
65
65
fmt= {
66
-
lua= { 'stylua' },
66
+
--lua = { 'stylua' }, -- see [Use stylua as an lsp formatter instead of an external formatter · nvim-lua/kickstart.nvim@459b868](https://github.com/nvim-lua/kickstart.nvim/commit/459b86865e9e81235c9db3be553d107adac5f72f)
-- Disable "format_on_save lsp_fallback" for languages that don't
22
-
-- have a well standardized coding style. You can add additional
23
-
-- languages here or re-enable it for the disabled ones.
24
-
localdisable_filetypes= { c=true, cpp=true }
25
-
ifdisable_filetypes[vim.bo[bufnr].filetype] then
26
-
returnnil
27
-
else
28
-
return {
29
-
timeout_ms=500,
30
-
lsp_format='fallback',
31
-
}
21
+
-- NOTE:
22
+
-- See:
23
+
-- - [Change format_on_save to a whitelist instead of a blacklist · nvim-lua/kickstart.nvim@ce353a9](https://github.com/nvim-lua/kickstart.nvim/commit/ce353a9b0e3c47d27784509217200818f522329e)
24
+
-- - [please disable autoformat on save in default configuration · Issue #1819 · nvim-lua/kickstart.nvim](https://github.com/nvim-lua/kickstart.nvim/issues/1819)
25
+
26
+
-- You can specify filetypes to autoformat on save here:
27
+
localenabled_filetypes= {
28
+
lua=true,
29
+
-- python = true,
30
+
}
31
+
ifenabled_filetypes[vim.bo[bufnr].filetype] then
32
+
return { timeout_ms=500 }
32
33
end
34
+
returnnil
33
35
end,
36
+
default_format_opts= {
37
+
lsp_format='fallback', -- Use external formatters if configured below, otherwise use LSP formatting. Set to `false` to disable LSP formatting entirely.
38
+
},
39
+
-- You can also specify external formatters in here.
34
40
formatters_by_ft=Langs.fmt,
41
+
-- Example
42
+
-- rust = { 'rustfmt' },
35
43
-- Conform can also run multiple formatters sequentially
0 commit comments