vim-code-dark icon indicating copy to clipboard operation
vim-code-dark copied to clipboard

Plugin not working properly for js files

Open hasanmubarok9 opened this issue 2 years ago • 2 comments

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

Screen Shot 2022-06-12 at 12 44 35 Screen Shot 2022-06-12 at 12 45 12

hasanmubarok9 avatar Jun 12 '22 05:06 hasanmubarok9

I don't see "pangloss/vim-javascript" in your vimrc, you need this to improve the colorization of js

LordPax avatar Jun 15 '22 17:06 LordPax

hello @hasanmubarok9 your problem is solved ?

LordPax avatar Jul 07 '22 22:07 LordPax

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.

PsiKai avatar Sep 24 '23 21:09 PsiKai

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.

tomasiser avatar Sep 29 '23 16:09 tomasiser