mirror of
https://github.com/traxys/Nixfiles.git
synced 2026-03-24 21:17:16 +01:00
neovim: Add a way to profile nvim
This commit is contained in:
parent
84b9c596ee
commit
162e3423b7
1 changed files with 12 additions and 0 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue