Skip to content

Custom Neovim plugin to compile and execute simple c++ files

Notifications You must be signed in to change notification settings

kutiny/gcompile.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

GCompile

This is a personal plugin just to compile and run simple c++ files from neovim.

Configure

Lazy
return {
    'kutiny/gcompile.nvim',
    config = function ()
        local mod = require('gcompile')
        mod.setup({
            split = 'horizontal'
        })
    end
}

Custom user commands

GCompileAndRun

Custom user command :GCompileAndRun, this commands open a split terminal, compiles the current file and tries to execute the compiled result.

vim.keymap.set("n", "<Leader>rr", ":GCompileAndRun<CR>")

GCompileRunAndExit

Custom user command :GCompileRunAndExit, this commands open a split terminal, compiles the current file and tries to execute the compiled result, once it has finished, exit the process (a.k.a closes the panel).

vim.keymap.set("n", "<Leader>rr", ":GCompileRunAndExit<CR>")

About

Custom Neovim plugin to compile and execute simple c++ files

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages