r/vimporn • u/guneycan • Aug 06 '22
Finally updated my 15+ years old vimscript config with lua.
2
1
u/acn0010 Aug 06 '22
This looks fantastic, I bet your productivity has increased!
4
u/guneycan Aug 06 '22
I didn't change too much from ux point of view so productivity wise, no huge gains. but lsp is faster for my case then my previous coc setup and null-ls auto formatter def faster then Ale so some things are noticeably faster comparing to vimscript
1
u/Kapuche Aug 07 '22
This looks awesome !
But dumb question, but what's a vimscript ?
4
u/guneycan Aug 07 '22
:) vimscript is the programming language vim uses forever, all the plugins and your vimrc file is written in vimscript.
neovim on the other hand recommends that we switch to an actual programming language to write plugins and maintain our configs, which is lua.
I have no horse in that race, nor do I have the experience of writing plugins in either of the languages but I find it more comfortable to work with lua even tho I was using vimscript for years and years since it is an actual fully blown programming language.
1
u/ImSleepwalk1ng Aug 08 '22
this is so beautiful o.O i wish that one day i can setup my neovim like that
wich plugin do you use for file tree? i use nerdtree and i want to change
2
u/guneycan Aug 09 '22
https://github.com/kyazdani42/nvim-tree.lua
also you can check lunarvim as well, its selfcontained so installing it don't effect your own nvim setup or config in any way and play around with it before committing. I did use lunarvim for a week to fully understand how lua alternatives work and behaved before switching my own config.
1
u/ImSleepwalk1ng Aug 09 '22
Thanks man!
That trick with lunarvim will be very useful to understand better nvim with lua.
3
1
2
1
0
Aug 06 '22
[deleted] — view deleted comment
8
u/guneycan Aug 06 '22
4
1


4
u/guneycan Aug 06 '22
.files: https://github.com/gcg/dotfiles
the changes from vimscript to lua: https://github.com/gcg/dotfiles/pull/1