News for hackers. Stuff that matters.
Re:Show HN: Postgres Language Server by petrzjunior on Sunday August 06, 2023 @01:53PM (#37024687)
JetBrains's IntelliJ and friends do that with language plugins. They detect the language according to keywords and patterns and are able to do highlighting and intellisense for multiple languages in a single file. I have not tried this with LSP though, because LSP support landed just in the last version.
Re:Show HN: Postgres Language Server by ComputerGuru on Sunday August 06, 2023 @04:43PM (#37026470)
Yeah, (neo)vim can do that for non-lsp with a filetype like html.css or similar whichbloads both syntax rules possibly with customizations to determine when it switches into which of the two modes. But again, I don’t know how that works with lsp.
Re:Show HN: Postgres Language Server by scns on Wednesday August 09, 2023 @11:45AM (#37064417)
In Intellij you can connect to the DB and get autocomplete in SQL strings.