-
Hey! I am currently migrating my existing neovim confguration to nvf and i was wondering where do i configure my own autocmds? For example this:
In my previous neovim configuration this was in a separate file called "autocmd.lua" and was called by init.lua. Thanks again for nvf! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
autocmd API is under development, in the meantime, since you already have autocmds in a separate file, you can just do this: vim.luaConfigRC.myAutocmds = ''
vim.cmd.luafile(${./path/to/autocmd.lua})
'' |
Beta Was this translation helpful? Give feedback.
-
I noticed that we recently got autocmd support! Great news :) However i am having issues figuring out how to configure it. This is what i currently have:
I am getting an error that says the following:
Okay so my understanding of nix is limited, but what i though of initially is that is supposed to be a list so i changed it to this:
And then i get this error:
Could anyone chime in on what i am doing wrong? :) |
Beta Was this translation helpful? Give feedback.
Could you try (inside the list)
I'm not on my system right now, but if I recall correctly the submodule system is designed for anonymous sets- not named ones. You'll also want to correct the pattern and the callback, but perhaps it'll be sensible for me to change the pattern to one of
null
,str, *or* a
listOf str` to avoid confusion.