Code Monkey home page Code Monkey logo

Comments (6)

dakra avatar dakra commented on August 18, 2024

Maybe an option to always disable keywords?
I think every(?) mode has a keywords regex for font locking
e.g. python has python-font-lock-keywords which we could use.

from symbol-overlay.

wbolster avatar wbolster commented on August 18, 2024

yeah, that sounds cool as a generic solution, if it can be made to work!

(i'm not familiar with the font lock internals.)

from symbol-overlay.

humitos avatar humitos commented on August 18, 2024

Thanks for this plugin, it just amazing!

This is the only thing that I'm missing from highlight-symbol. That plugin has a setting that I use like this to ignore some highlights:

  (setq highlight-symbol-ignore-list
        '("False" "True" "None" "self" "def" "import" "from" "if" "else" "for"
          "while" "class" "print" "and" "not" "is" "param" "rtype" "async"
          "with" "."))

Hope you consider to add this. Thanks!

from symbol-overlay.

wbolster avatar wbolster commented on August 18, 2024

i think a callback to determine whether a symbol should be ignored is the most generic solution. since the ignore list is likely to be dependent on the major mode (i see no other use case personally), a defcustom that maps major-mode to a function that returns nil or non-nil would be a sensible ‘dispatching mechanism’.

if you think this is a sensible approach, i can try to cook up a pr (when i find time) that implements this.

from symbol-overlay.

wbolster avatar wbolster commented on August 18, 2024

i opened #18 with an unfinished implementation of the idea explained in my previous comments.

feedback welcome.

from symbol-overlay.

wbolster avatar wbolster commented on August 18, 2024

#18 has been merged, improvements and additions should go into new pull requests.

from symbol-overlay.

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.