Closed martisj closed 1 week ago
<leader>f
or :lua vim.lsp.buf.format()
it correctly focuses on the error window, so you can close it.vim.lsp.buf.format
recognize. I say this because this doesn't happen with formatters for other languages which also error on syntax errors but don't open any floats.Silence all errors from elm_format in conform.nvim opts.
{
'stevearc/conform.nvim',
opts = {
formatters_by_ft = {
elm = { 'elm_format', quiet = true },
}
}
}
I should mention that this works only on very recent conform.nvim version and isn't even in any stable version, as far as I know. Kickstart by default uses the latest commit of conform, so if you didn't change that, you can pull latest version in Lazy.
You can open an issue in elm_format mentioning something from this response or try fixing it yourself and open a PR.
Is this really a kickstart issue or more a Telescope/elm LSP issue?
The only way I see to fix it from kickstart is to add configuration for elm formatter. But it's more of a silencing than a fix
OK thanks. Please report this issue to whatever LSP or formatter elm uses :)
Describe the bug
I've got this elm file:
When I save
I can't close it with
:w
I see this dialogq
or navigate to it with<C-w>w
. What does make it go away is opening a Telescope picker, like "Workspace Diagnostics" (<leader>sd
)To Reproduce
Load the elm code from above:
elmls
andelm-format
installed.:w
Extra infoz
If I do
:wq
I get this messageDesktop
Neovim Version
NVIM v0.10.0 Build type: RelWithDebInfo LuaJIT 2.1.1707061634 Run ":verbose version" for more info.0