ecosse3 / nvim

A non-minimal Neovim config built to work most efficiently with Frontend Development
GNU General Public License v3.0
1.24k stars 109 forks source link

Plugin comment.nvim not working #140

Closed al77ex1 closed 1 year ago

al77ex1 commented 1 year ago

When I press gcc I have warning and code string not commented.

image

This problem appeared in version 3.5

ecosse3 commented 1 year ago

Hi. Could you give more information? Filetype? I cannot reproduce this.

al77ex1 commented 1 year ago

This problem occurs with files of type .js

For example in this simple component code:

import { createGlobalStyle } from 'styled-components';
import './index.css';

const GlobalStyle = createGlobalStyle`
  html,
  body {
    height: 100vh;
    width: 100%;
    line-height: 1.5;
  }
  .common-wrapper {
    //height: 100vh;
  }
`;

export default GlobalStyle;

But for files like .css everything works fine

I tried reinstalling all plugins but the problem doesn't go away.

al77ex1 commented 1 year ago

The problem was related to nvim version.