Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Neovim with init.lua is faster #388

Open
voyeg3r opened this issue Aug 31, 2021 · 3 comments
Open

Neovim with init.lua is faster #388

voyeg3r opened this issue Aug 31, 2021 · 3 comments

Comments

@voyeg3r
Copy link

voyeg3r commented Aug 31, 2021

We all know how hard it would be to create a separate neovim exclusive config, but the speed it brings is huge.
Neovim now has native Language Server support, treesiter for better syntax.

There is a thread on Reddit on how much faster/or better using init.lua could be:
https://www.reddit.com/r/neovim/comments/jfs5sb/initvim_to_initlua_any_advantages/

Personally, I am using a plugin that caches lua plugins, which already are faster than pure vim:

    use {'lewis6991/impatient.nvim', rocks = 'mpack'}   -- faster startup

The plugin manager is packer (written in lua)

Even it took a long time to implement, this solution would be great

@avelino
Copy link
Member

avelino commented Sep 1, 2021

I like the idea of generating the configuration for neovim in lua, but how do we implement it within the current (generator) code?
Where you don't give us so much trouble to maintain?

@voyeg3r do you have any suggestions? Do you have knowledge in our code base?

@cizordj
Copy link
Contributor

cizordj commented Dec 7, 2021

The idea is not bad. However we'd have to implement another generator just for this.

(I don't know this project's codebase but the assumption is logical)

@avelino
Copy link
Member

avelino commented Dec 7, 2021

However we'd have to implement another generator just for this.

@cizordj one way to do this would be to abstract the final language that should be generated (viml, lua, etc) and use the template go (programming language used on the server) to generate the output file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants