Skip to content

How to configure the Formatter? #357

Discussion options

You must be logged in to vote

Ahhh! I see.

With your suggestions I was able to solve the braces issue like so:

lspconfig.serve_d.setup({
	on_attach = my_on_attach_func,
	settings = {
		dfmt = {
			braceStyle = "stroustrup", -- or your desired style 
		},
	},
})

I'd be glad to make a PR to the editor-vim.md; I just need a few pointers.

My nitpick is discoverability - if I type DFmt as the types file suggests then it doesn't work - it has to be written in the same style as the package.json

That's fair enough, but it feels weird to me to tell the reader "read the package.json of a separate git repo to see how you can tweak serve-d".

I see that that's how it's setup in the main README but I was wondering if there was a be…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@JoaquimEsteves
Comment options

Answer selected by JoaquimEsteves
@WebFreak001
Comment options

@JoaquimEsteves
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants