feat(project): add project management

This commit is contained in:
István Donkó 2023-02-18 16:49:12 +01:00
parent de6a28b781
commit a49892f127
2 changed files with 13 additions and 0 deletions

View file

@ -241,6 +241,7 @@ return {
dashboard.button("f", "" .. " Find file", ":Telescope find_files <CR>"), dashboard.button("f", "" .. " Find file", ":Telescope find_files <CR>"),
dashboard.button("n", "" .. " New file", ":ene <BAR> startinsert <CR>"), dashboard.button("n", "" .. " New file", ":ene <BAR> startinsert <CR>"),
dashboard.button("r", "" .. " Recent files", ":Telescope oldfiles <CR>"), dashboard.button("r", "" .. " Recent files", ":Telescope oldfiles <CR>"),
dashboard.button("p", "" .. " Projects", ":Telescope projects <CR>"),
dashboard.button("g", "" .. " Find text", ":Telescope live_grep <CR>"), dashboard.button("g", "" .. " Find text", ":Telescope live_grep <CR>"),
dashboard.button("c", "" .. " Config", ":e $MYVIMRC <CR>"), dashboard.button("c", "" .. " Config", ":e $MYVIMRC <CR>"),
dashboard.button("s", "" .. " Restore Session", [[:lua require("persistence").load() <cr>]]), dashboard.button("s", "" .. " Restore Session", [[:lua require("persistence").load() <cr>]]),

View file

@ -22,6 +22,18 @@ return {
}, },
}, },
-- project management
{
"ahmedkhalf/project.nvim",
config = function(_, opts)
require("project_nvim").setup(opts)
require("telescope").load_extension("projects")
end,
keys = {
{ "<leader>fp", "<Cmd>Telescope projects<CR>", desc = "Projects" },
},
}
-- library used by other plugins -- library used by other plugins
{ "nvim-lua/plenary.nvim", lazy = true }, { "nvim-lua/plenary.nvim", lazy = true },