Skip to content

peterjumper/gcompile.lua

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

GCompile

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

Configure

Lazy
return {
    'peterjumper/gcompile.lua',
    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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages