Git Product home page Git Product logo

Comments (6)

rmehri01 avatar rmehri01 commented on July 21, 2024

Hey, what colorscheme switcher are you using? That way I can test it out since it seems to show up for me when doing :colorscheme and :Telescope colorscheme.

from onenord.nvim.

cwaldbieser avatar cwaldbieser commented on July 21, 2024

from onenord.nvim.

rmehri01 avatar rmehri01 commented on July 21, 2024

Hmm, adding an empty file doesn't seem to work for me, did it for you? Replacing colors/onenord.lua with colors/onenord.vim does seem to do it for me. It also seems like the plugin doesn't work for other lua colorschemes like tokyonight, I'm guessing for the same reason.

from onenord.nvim.

cwaldbieser avatar cwaldbieser commented on July 21, 2024

Well, the plugin lets you configure a helper command rather than "colorscheme". I guess that's because some of the newer color schemes, especially lua based ones, have different ways to setup/initialize. However, the switcher code looks like it is just looking in the "colors" folders for .vim files to get a list of color schemes.

This is my helper command. I just put the empty "onenord.vim", the switcher finds it. If I don't, the switcher doesn't find it.
I'm not sure how you're supposed to iterate over color schemes in neovim, so I'm not sure if the colorscheme plugin really is supposed to have a "colors/NAME.vim", by convention, or if that was just a fragile approach taken by the switcher plugin. In the latter case, I could ask that plugin author to update the switcher code.

from onenord.nvim.

rmehri01 avatar rmehri01 commented on July 21, 2024

Ah I see, thank you for the clarifications! I see that in the neovim documentation, both vim and lua files are allowed, colors/{name}.(vim|lua) so it might just be an issue of this plugin being originally written for vim and not neovim.

from onenord.nvim.

rmehri01 avatar rmehri01 commented on July 21, 2024

Closing for now since it seems like an issue with the plugin being written for vim and not neovim

from onenord.nvim.

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.