mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 08:41:43 +05:30
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:
@@ -1,6 +1,8 @@
|
|||||||
return {
|
return {
|
||||||
{ "tpope/vim-repeat" },
|
{ "tpope/vim-repeat" },
|
||||||
|
|
||||||
|
{ "arnamak/stay-centered.nvim" },
|
||||||
|
|
||||||
-- Better code folding
|
-- Better code folding
|
||||||
{
|
{
|
||||||
"kevinhwang91/nvim-ufo",
|
"kevinhwang91/nvim-ufo",
|
||||||
|
|||||||
@@ -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
|
-- Session management. Saves your session in the background
|
||||||
-- TIP: autocmd to autoload sessions at: ../config/autocmd.lua
|
-- TIP: autocmd to autoload sessions at: ../config/autocmd.lua
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user