Fork me on GitHub
#vim
<
2022-07-05
>
Noah Bogart23:07:42

Iā€™m in the process of switching my config over from vimscript to lua and it's surprisingly easy.

šŸš€ 3
sheluchin00:07:32

If you do that, can you only use plugins written in lua?

Dumch00:07:16

You can use all the plugins

sheluchin01:07:31

So you can configure plugins written in pure vimscript using lua?

Noah Bogart13:07:53

neovim exposes a lua api that allows for running vimscript code, in addition to loading it natively

Dumch13:07:54

You can go further and switch to Fennel šŸ™‚ I did this and I am happy now https://www.reddit.com/r/nvim/comments/u28v8n/one_more_nvim_config_with_fennel_i_am_glad_i/

Dumch13:07:34

The most benifit I get from the ability to change config with repl-like approach with https://github.com/Olical/aniseed

Noah Bogart13:07:42

I looked into that! Seemed a little more complicated than just transitioning over 1-to-1, so I decided to take it one step at a time

Dumch13:07:17

Yes, I had some problems translating all the samples from the readmes of plugins šŸ™‚

practicalli-johnny00:07:56

I've been using fennel (as a first time Neovim user) and configured a number of plugins, with the help of other repos mentioned in the readme I'm still figuring out which of the very many plugins I actually need šŸ™‚ https://github.com/practicalli/neovim-config-redux

Noah Bogart12:07:38

@U05254DQM your bootstrapping init.lua looks like exactly what I've been searching for to move my own set up to fennel. Thanks for sharing!

practicalli-johnny13:07:25

Glad its useful. I picked up much of the more interesting parts of the repository from several peoples repos. Feel free to use what ever you find useful

mamapitufo17:07:11

I'm curious whether anyone with a mostly Lua/fennel config misses the documentation available on VimL files or not? I've migrated to fennel (and back) twice because I miss having docs for configuration vars, options, etc., a quick K away! Did I miss something? Is there a way of having something similar with fennel, or at least Lua?

ribelo19:07:49

"\"ayaw:help <C-r>a<CR>"

ribelo19:07:42

cmp I don't think I need to explain, with this you have function suggestion in fennel

ribelo19:07:35

the latter writes the current word to register a, and later calls help for that word

mamapitufo18:07:00

will give it a try, thank you!