Open junnplus opened 2 years ago
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)
I need to set synchronization options for different filetypes, is there a way to set them globally?