Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comments in vue file inconsistent after first template element #150

Open
dyllandry opened this issue Sep 28, 2020 · 1 comment
Open

Comments in vue file inconsistent after first template element #150

dyllandry opened this issue Sep 28, 2020 · 1 comment

Comments

@dyllandry
Copy link

dyllandry commented Sep 28, 2020

This is a cool plugin, and I'll be absolutely jazzed if I'm able to use it correctly at work.

I think I've found a bug where the style of comments change from <!-- --> to /* */ after the first <template> element closes in a vue file. I've got context_filepath.vim installed. Here's an example:

<template>
  <div>
    <!-- <div>Test 1</div> -->
    <template>
      <!-- <div>Test 2</div> -->
    </template>
    /* <div>Test 3</div> */
  </div>
</template>

<script>
export default {}
</script>

<style>
</style>

I imagine this could be a problem with https://github.com/Shougo/context_filetype.vim/tree/master/doc but i have no idea how to diagnose that.

@mirsella
Copy link

mirsella commented Oct 6, 2020

for me it's the inverse, it work well in the template tag but not with the script or style tag :(
i tried this plugin because i thought it would work with vue file, but no, so i'll continue to use nerdcommenter since this plugins doesn't have anything more ?

edit : check this plugin suy/vim-context-commentstring which change 'commentstring' depending on your location in the file. it work well with caw.vim and vim-commentary, but didn't work with nerdcommenter for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants