This commit is contained in:
ldraney 2024-03-24 13:36:25 -06:00
parent dbba54cfd8
commit 6380f390ea
26 changed files with 2704 additions and 0 deletions

33
nvim-old/lua-diagnostics.sh Executable file
View file

@ -0,0 +1,33 @@
#!/bin/bash
# Directories and file names
nvim_lua_dir="$HOME/.config/nvim/lua"
module1="tmux_split_even_horizontal.lua"
module2="toggle_rel_abs_numbers.lua"
# Function to check if a file exists
check_file() {
if [[ -f "$1" ]]; then
echo "File exists: $1"
else
echo "File NOT found: $1"
fi
}
echo "Checking Lua modules..."
# Check Lua modules
check_file "$nvim_lua_dir/$module1"
check_file "$nvim_lua_dir/$module2"
# Check LUA_PATH
echo "Checking LUA_PATH..."
echo "LUA_PATH=$LUA_PATH"
# Check Lua module loading
echo "Attempting to manually load Lua modules..."
lua -e "require('tmux_split_even_horizontal'); print('Module tmux_split_even_horizontal loaded successfully')"
lua -e "require('toggle_rel_abs_numbers'); print('Module toggle_rel_abs_numbers loaded successfully')"
echo "Diagnostic checks complete."