sxwpb

u/sxwpb@lemmy.world
2 posts · 9 comments

Recent posts

Recent comments

on project-local init.lua · c/neovim · 2 pts · 1y

what about using exrc (with like a .nvim.lua file inside the repos) with the content of

dofile(“../init.lua”)
-- maybe more repo specific config here

and then say ~/work-clientA/init.lua with all client specific changes there.

this would still require creating two separate files but the client setup will be the same for all client repos, and additionally you can add repo specific changes.

I just use it all the time when I forget what I changed and want to make sure I’m ok with all changes before saving.

It is very similar to a command in emacs called M-x diff-buffer-with-file.