lsp-format.nvim
lsp-format.nvim copied to clipboard
support sync save for global
I need to set synchronization options for different filetypes, is there a way to set them globally?
No, there is no built in way to set options globally.
But you could script this pretty easly like so
local config = {}
for _, v in pairs(vim.fn.getcompletion("", "filetype")) do
config[v] = { sync = true }
end
require("lsp-format").setup(config)