Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support sync save for global #50

Open
junnplus opened this issue Aug 5, 2022 · 1 comment
Open

support sync save for global #50

junnplus opened this issue Aug 5, 2022 · 1 comment

Comments

@junnplus
Copy link

junnplus commented Aug 5, 2022

I need to set synchronization options for different filetypes, is there a way to set them globally?

@lukas-reineke
Copy link
Owner

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants