vim-code-dark
vim-code-dark copied to clipboard
Plugin not working properly for js files
Hello, I really like the colorschema of this plugin and I've been using it for a few days, but recently I realized this theme doesn't apply well to js files, but it works fine for ts.
my .vimrc
: .vimrc


I don't see "pangloss/vim-javascript" in your vimrc, you need this to improve the colorization of js
hello @hasanmubarok9 your problem is solved ?
I don't see "pangloss/vim-javascript" in your vimrc, you need this to improve the colorization of js
I have the same problem as the poster, and this plugin fixed it.
Thank you for reporting how to fix it. In general, a color scheme in Vim is a very "dumb" plugin that only provides a table of which colors should be applied to which syntax groups. However, the color scheme itself is not responsible for recognizing the syntax itself. For that, you need different plugins for the corresponding programming languages. In this case, the colors for JavaScript are defined in the color scheme, but how to recognize the JavaScript tokens is defined in another plugin outside of this color scheme. So typically you need multiple plugins and the color scheme is only one of them.