neovim: Add a way to profile nvim

This commit is contained in:
Quentin Boyer 2024-12-15 21:02:33 +01:00
parent 84b9c596ee
commit 162e3423b7

View file

@ -372,6 +372,18 @@
keymaps.enable = true;
};
plugins.snacks.enable = true;
extraConfigLuaPre = lib.mkBefore ''
if vim.env.PROF then
require("snacks.profiler").startup({
startup = {
event = "VimEnter"
}
})
end
'';
extraConfigLuaPost = ''
require("luasnip.loaders.from_snipmate").lazy_load()