project: start up with project.nvim

This commit is contained in:
xinyangli 2024-08-22 11:52:28 +08:00
parent 7284e679ab
commit 8add88a989
Signed by: xin
SSH key fingerprint: SHA256:qZ/tzd8lYRtUFSrfBDBMcUqV4GHKxqeqRA3huItgvbk

View file

@ -1,6 +1,27 @@
{ helpers, ... }:
{
plugins.project-nvim = {
enable = true;
enableTelescope = true;
silentChdir = false;
scopeChdir = "tab";
};
autoGroups.project_nvim_group = {
clear = true;
};
autoCmd = [
{
event = "VimEnter";
group = "project_nvim_group";
desc = "Startup with project.nvim";
callback = helpers.mkRaw ''
function()
require("telescope").extensions.projects.projects{}
end
'';
}
];
}