This file contains code blocks in various languages to test your Shifty installation.
print("Hello from Python!")
print(f"Python version: {__import__('sys').version}")console.log("Hello from JavaScript!");
console.log(`Node.js version: ${process.version}`);print("Hello from Lua!")
print("Lua version: " .. _VERSION)fn main() {
println!("Hello from Rust!");
println!("Rust version: {}", env!("CARGO_PKG_VERSION"));
}- Open this file in Neovim
- Run
:ShiftyToggleto open the Shifty window - Place your cursor in any code block above
- Run
:ShiftyRunto execute the code - You should see the output in the floating window
If you get errors:
- Make sure the language runtime is installed (python3, node, lua, rustc)
- Check that the language is in your PATH
- Run
:ShiftyInfoto see available languages - Verify your configuration in your Neovim config file