feat(nvim): Programming QoL plugins

- stay-centered: auto center cursor
- WIP: project-explorer: open projects from computer from inside neovim
This commit is contained in:
Pratik Tripathy
2025-01-06 17:32:58 +05:30
parent 4bc62021d6
commit 8f66129fa4
2 changed files with 26 additions and 0 deletions

View File

@@ -1,6 +1,8 @@
return {
{ "tpope/vim-repeat" },
{ "arnamak/stay-centered.nvim" },
-- Better code folding
{
"kevinhwang91/nvim-ufo",

View File

@@ -239,6 +239,30 @@ return {
},
},
{
"Rics-Dev/project-explorer.nvim",
enabled = false,
dependencies = {
"nvim-telescope/telescope.nvim",
},
opts = {
-- TODO: fix it
command_pattern = "find -L ~/Code -mindepth 1 -maxdepth 3 -type d -name '.git' -printf '%h\n'",
newProjectPath = "~/Code/Dabble/", --custom path for new projects
file_explorer = function(dir) --custom file explorer set by user
vim.cmd("Neotree close")
vim.cmd("Neotree " .. dir)
end,
},
config = function(_, opts)
require("project_explorer").setup(opts)
end,
keys = {
{ "<leader>fp", "<cmd>ProjectExplorer<cr>", desc = "Project Explorer" },
},
lazy = false,
},
-- Session management. Saves your session in the background
-- TIP: autocmd to autoload sessions at: ../config/autocmd.lua
{