chore: renamed open_project_manager to manager and added aux files to hints
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
# Start from the current directory
|
||||
DIR="$(pwd)"
|
||||
|
||||
# Walk up until we find a marker or reach root
|
||||
while [[ ! -f "$DIR/CMakeLists.txt" && \
|
||||
! -f "$DIR/package.json" && \
|
||||
! -f "$DIR/venv" && \
|
||||
@@ -11,7 +9,6 @@ while [[ ! -f "$DIR/CMakeLists.txt" && \
|
||||
DIR="$(dirname "$DIR")"
|
||||
done
|
||||
|
||||
# Check if root was reached without finding anything
|
||||
if [[ "$DIR" == "/" ]]; then
|
||||
echo "❌ Project root not found."
|
||||
exit 1
|
||||
|
||||
@@ -9,7 +9,7 @@ function M.setup(opts)
|
||||
config.user_config[lang] = vim.tbl_deep_extend("force", config.defaults[lang] or {}, user_opts)
|
||||
end
|
||||
|
||||
vim.api.nvim_create_user_command("PolydevOpen", ui.open_project_manager, {})
|
||||
vim.api.nvim_create_user_command("PolydevOpen", ui.manager, {})
|
||||
|
||||
local keys = vim.tbl_deep_extend("force", {}, config.get("globals").keybinds, opts or {})
|
||||
for key, _ in pairs(keys) do
|
||||
|
||||
+2
-1
@@ -62,7 +62,7 @@ function M.load_language_module(lang, opts)
|
||||
return true
|
||||
end
|
||||
|
||||
function M.open_project_manager()
|
||||
function M.manager()
|
||||
local templates = require("Polydev.templates")
|
||||
local Popup = require("nui.popup")
|
||||
local Layout = require("nui.layout")
|
||||
@@ -216,6 +216,7 @@ function M.open_project_manager()
|
||||
" / : Search",
|
||||
" a : New folder",
|
||||
" % : New file",
|
||||
" x : New auxilary file",
|
||||
" d : New project",
|
||||
" R : Rename",
|
||||
" D : Delete",
|
||||
|
||||
Reference in New Issue
Block a user