Skip to content

An advanced and easy to use and configurable code runner for neovim!

License

Notifications You must be signed in to change notification settings

Aliqyan-21/runTA.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 

Repository files navigation

runTA.nvim

Welcome to runTA.nvim, the ultimate Neovim plugin that supercharges your coding workflow by seamlessly integrating code execution right within your Neovim editor!

Why You'll Love runTA.nvim

  • Are you tired of switching between Neovim and a terminal to test your code?
  • Do you program in various programming languages or continously trying to learn new languges?

Say goodbye to context-switching and hello to uninterrupted productivity! runTA.nvim brings the power of code execution directly into Neovim with an elegant floating terminal window.

Key Features

  • Seamless Code Execution
  • Customizable Terminal
  • Transparency Options
  • Automatic Language Detection
  • Various Window Types - floating, pane, tab, split

Sound ON

video.mp4
  • Languages Currently Supported:
    • c
    • c++
    • Python
    • Java
    • JavaScript
    • TypeScript
    • Ruby
    • Lua
    • Go
    • Rust
    • Perl
    • PHP
    • Bash
    • R
    • Swift
    • Haskell
    • Kotlin

Installation

Getting started with runTA.nvim is easy! Simply install it using your favorite plugin manager. For example, with packer.nvim, add the following line to your configuration:

use {
    "aliqyan-21/runTA.nvim"
    config = function()
    require("runTA.commands").setup()
    end,
}

for lazy.nvim

return {
    "aliqyan-21/runTA.nvim"
    config = function()
    require("runTA.commands").setup()
    end,
}

Configuration

Customize runTA.nvim to fit your needs by adding the following configuration to your Neovim setup:

runTA.setup({
    output_window_type = "floating", -- floating, pane, tab, split

    output_window_configs = {
    width = 80, -- Width of the floating window
    height = 20, -- Height of the floating window
    position = "center", -- Position of the floating window ("center", "top", "bottom", "left", "right", "custom")
    custom_col = nil, -- Custom column position (optional)
    custom_row = nil, -- Custom row position (optional)

    transparent = false, -- Set to true for a transparent background
    },
})
end

Usage

  1. :RunCode: running your code is as simple as executing a command. Just use :RunCode in Neovim or set keymap to trigger the command, and watch as your code runs in the floating terminal window with all output displayed right where you need it!
  2. :ReopenLastOutput: this function opens up the recent executed code output.
  3. Output Window: you can go through your code with vim bindings and copy any errors and stuff with vim bindings and press q to exit!

Contribution

Contributions are welcome to make runTA.nvim even better! Submit issue or pull request to add more languages or features

License

runTA.nvim is licensed under the MIT License.

Acknowledgements

Special thanks to Neovim for providing a powerful and extensible platform such as this.

And parents -> TA are the initials of my mom and dad.

Releases

No releases published

Packages

No packages published

Languages