1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-10-10 19:41:15 +02:00

nvim: added projection for session and project management

This commit is contained in:
2024-04-01 03:22:07 +02:00
parent 87b28a025c
commit 41e60ce12c
6 changed files with 90 additions and 33 deletions

View File

@@ -0,0 +1,24 @@
return {
"gnikdroy/projections.nvim",
dependencies = { "nvim-telescope/telescope.nvim" },
branch = "pre_release",
config = function()
require("projections").setup({
workspaces = { -- Default workspaces to search for
{ "~/code/main", { ".git" } },
{ "~/code/uni", { ".git" } },
},
store_hooks = {
pre = function()
-- nvim-tree
local nvim_tree_present, api = pcall(require, "nvim-tree.api")
if nvim_tree_present then
api.tree.close()
end
end,
},
})
require("telescope").load_extension("projections")
end,
}

View File

@@ -23,9 +23,9 @@ return {
wilder.python_file_finder_pipeline({
file_command = function(ctx, arg)
if string.find(arg, '.') ~= nil then
return {'fdfind', '-tf', '-H'}
return {'fd', '-tf', '-H'}
else
return {'fdfind', '-tf'}
return {'fd', '-tf'}
end
end,
dir_command = {'fd', '-td'},