GithubHelp home page GithubHelp logo

Comments (5)

nanotee avatar nanotee commented on July 3, 2024 4

Already done! e549b0d Really exciting news.

(I'll keep this open because I still need to talk about the :source/:runtime stuff, thanks for opening this issue)

from nvim-lua-guide.

clason avatar clason commented on July 3, 2024 2

A few advantages I noticed which may or may not be worth mentioning:

  1. putting things in plugin/foo.lua is slightly faster than using require'foo' with lua/foo.lua (due to the overhead require has); the difference is not great but measurable;
  2. plugin/foo.lua does not shadow a Lua module of the same name in lua (again, because no require is involved), which means that you can put, e.g., your packer config into packer.lua and not get weird errors;
  3. after neovim/neovim#14788 is merged, these will show up in the --startuptime profile

from nvim-lua-guide.

nanotee avatar nanotee commented on July 3, 2024 1

#68 should cover everything. Thanks for your valuable suggestions, I find them very helpful!

from nvim-lua-guide.

clason avatar clason commented on July 3, 2024

Yep, works quite well. Even colorschemes work (like colorscheme moonberg if moonberg.lua is in colors) -- not that this will buy you anything since it'll basically have to be a lot of vim.cmd[[hi foo ...]], but when has that ever stopped anyone ;)

from nvim-lua-guide.

clason avatar clason commented on July 3, 2024

Maybe mention the order of execution (all vim files, then all lua files, by directory)? That's in the docs, but may be good to know in that context?

from nvim-lua-guide.

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.