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:
24
.config/nvim/lua/plugins/projections.lua
Normal file
24
.config/nvim/lua/plugins/projections.lua
Normal 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,
|
||||
}
|
@@ -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'},
|
||||
|
Reference in New Issue
Block a user