close
Skip to main content
hudsy u/hudsy avatar

hudsy

u/hudsy

Feed options
Hot
New
Top
View
Card
Compact

A pun


There's an amazing Sabaton song about this event



Perfect, made it work! Thanks a lot!


How to print without saving in message history
Image
r/neovim
How to print without saving in message history

I am migrating from CoC to lspconfig. I like the diagnostics messages printed in the command line because it doesn't distract me so much. I've disabled the virtual_text and added this to my custom "textDocument/publishDiagnostics" handler:

for _, diagnostic in pairs(vim.lsp.diagnostic.get_line_diagnostics()) do
  print(diagnostic.source .. ":" .. diagnostic.message)
end

This works fine and shows the message where I want. However print seems to also save the messages in the history messages (as opposed to echo) so when I do :messages I see lots of lines with all the diagnostics. I've also tried using vim.cmd/vim.api.nvim_command but then I get a confirmation message and have to "press Enter to continue"

Is there a way to print to the command line without saving the messages in the history? I've tried looking around CoC code but haven't found how they manage it.

Thanks!


See :h i_CTRL-X_CTRL-F


My Keybase proof [reddit:hudsy = keybase:ferranpm] (sYquTchXovGVQT9KA0cystuXmxfQIuNRiOg08I9iCsY)
Image
r/KeybaseProofs
My Keybase proof [reddit:hudsy = keybase:ferranpm] (sYquTchXovGVQT9KA0cystuXmxfQIuNRiOg08I9iCsY)

Keybase proof

I am:

Proof:

hKRib2R5hqhkZXRhY2hlZMOpaGFzaF90eXBlCqNrZXnEIwEgVrMLNpjvw46s7Ijdh/IoycvT8E2Gguh6TzJ+fQCtOQMKp3BheWxvYWTFAzp7ImJvZHkiOnsia2V5Ijp7ImVsZGVzdF9raWQiOiIwMTAxZWM4YWExMGNkY2UzNDY1MDU2Y2MxZGY3ZTEyODc3YTFjOTRiYzkyNWMzNWQ2MWVmZGVhYzI1ZjM4YzNjMGE2MjBhIiwiaG9zdCI6ImtleWJhc2UuaW8iLCJraWQiOiIwMTIwNTZiMzBiMzY5OGVmYzM4ZWFjZWM4OGRkODdmMjI4YzljYmQzZjA0ZDg2ODJlODdhNGYzMjdlN2QwMGFkMzkwMzBhIiwidWlkIjoiYmY0OWVhZDRkMWY4YmU1ZWY0Yzg3MjE3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