Code Monkey home page Code Monkey logo

Comments (6)

gennaro-tedesco avatar gennaro-tedesco commented on June 22, 2024 1

I see, so essentially we want to use the block comment characters at the beginning and end of the line, wrapping the text inside, if I understand correctly.

from nvim-commaround.

gennaro-tedesco avatar gennaro-tedesco commented on June 22, 2024

I have created pull request #9 to address this issue. At a first glance it seems to me that the change is trivial, one can simply toggle block mode on single lines too, see here.

I am trying to mock the vim.api for testing, however this seems to be slightly non-trivial. Below you can find a gif of the expected behaviour on single lines for html files:

Screen-Recording-2021-03-25-at-1

Please check that it works as expected on standard html files (both for single and for block comments again).

from nvim-commaround.

EMPAT94 avatar EMPAT94 commented on June 22, 2024

Hello mate,

I checked the single-wrap branch on an html file. Works just fine, for both single and block comments.

It doesn't work for xml files though. Perhaps we can add them to the config before merge? Their comment scheme is same as html.

Thanks!

from nvim-commaround.

gennaro-tedesco avatar gennaro-tedesco commented on June 22, 2024

I added xml configurations in ccd5a17

If all good, I will merge.

from nvim-commaround.

EMPAT94 avatar EMPAT94 commented on June 22, 2024

Yep. all good! Can merge. Thank you!

from nvim-commaround.

gennaro-tedesco avatar gennaro-tedesco commented on June 22, 2024

Merged. Please PlugUpdate to see all new changes.

from nvim-commaround.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.