Git Product home page Git Product logo

Comments (6)

scrooloose avatar scrooloose commented on May 18, 2024

Hi :)

Currently you cant, although you could stick this line underneath the
s:delimiterMap definition:

let g:NERDCommenterDelimiters = s:delimiterMap

then you can access s:delimiterMap through g:NERDCommenterDelimiters.
e.g. :echo g:NERDCommenterDelimiters['ruby']

I could add functions to access/modify the delimiter map. Let me know
what you think :)

Cheers
Marty

On 10/24/2011 09:49 PM, JuanPablo wrote:

How I can call to s:delimiterMap from other functions?
// for not re write a similar dic with comments chars

from nerdcommenter.

juanpabloaj avatar juanpabloaj commented on May 18, 2024

yes, I think in a solution similar to

 let g:NERDCommenterDelimiters = s:delimiterMap

maybe functions to access/modify the delimiter map is a util tool for other plugins to use the NERDCommenter as a dependency

from nerdcommenter.

tiesmaster avatar tiesmaster commented on May 18, 2024

I also like to see possibility to add an option to the delimiter map from a different location. Now, I'm patching NERD_commenter.vim, but this gets overridden by every update of Janus.

Do you want me to fork and patch?

Great plugin, though!

from nerdcommenter.

alerque avatar alerque commented on May 18, 2024

Is this something that access to the g:NERDCustomDelimiters array doesn't handle? For example in your rc file you can override one set of delimiters like this:

let g:NERDCustomDelimiters = { 'pascal': { 'left': '(*','right': '*)' } }

@tiesmaster or @juanpabloaj, is there some use case that this functionality doesn't allow for?

from nerdcommenter.

alerque avatar alerque commented on May 18, 2024

Nevermind, I think I get it. You're trying to get data out of the plugin, not add or manipulate what's in the plugin.

from nerdcommenter.

alerque avatar alerque commented on May 18, 2024

This appears to have been fixed in 6549cfd so the map is globally accessible. If there is anything else left to do please comment back.

from nerdcommenter.

Related Issues (20)

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.