3 ms·
Maybe a Vim expert can help me out. I’ve used Vim for a long time, but never with any plugins, and only a few lines in my .vimrc. My problem is that the syntax
by schemescape 4y ago
Maybe a Vim expert can help me out. I’ve used Vim for a long time, but never with any plugins, and only a few lines in my .vimrc.
My problem is that the syntax highlighting, specifically for TypeScript is pretty bad. I have a regular expression (for parsing front matter) that seems to cause Vim’s syntax highlighting to go haywire (it stops and sometimes crashes).
Is anyone aware of a way to get more reliable syntax highlighting in Vim, ideally with a minimum of fuss?
- 0zemp1c 4y agousing lsp with typescript-language-server? most of the neovim setup scripts (lazyvim etc) get this set up automatically
- sundarurfriend 4y agoAn LSP seems overkill for syntax highlighting? This seems more like a treesitter thing. (Mind you, I have no experience with TypeScript, just saying this as a general remark on what those components do.)
- schemescape 4y agoOh, my initial research (reading the Neovim docs) indicated that setting up Neovim would require a lot of manual configuration for getting an LSP working. I will give it another look, thanks! Most blog posts I found seemed to assume you already had a gigantic custom config, plug-in manager, etc. I couldn’t find a “how to set up better highlighting and/or an LSP for people who know Vim but don’t know anything about configuration” guide.