Skip to content

LucLabarriere/maker.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Maker

Provides two functions : cmd and feed_diagnostics. Running cmd('my_command) creates an output buffer, registers it for further cmd runs and runs my_command. feed_diagnostics reads the output buffer content and feeds the diagnostics window with its content.

Usage

vim.api.nvim_set_keymap('n', '<Leader>feed', ':lua require("Maker").feed_diagnostics()<CR>', opts)
vim.api.nvim_set_keymap('n', '<Leader>cc', ':lua require("Maker").cmd("./configure.sh .")<CR>', opts)
vim.api.nvim_set_keymap('n', '<Leader>bb', ':lua require("Maker").cmd("./build.sh")<CR>', opts)
vim.api.nvim_set_keymap('n', '<Leader>rr', ':lua require("Maker").cmd("./run.sh")<CR>', opts)
vim.api.nvim_set_keymap('n', '<Leader>cb', ':lua require("Maker").cmd("./configure.sh .; ./build.sh")<CR>', opts)
vim.api.nvim_set_keymap('n', '<Leader>br', ':lua require("Maker").cmd("./build.sh; ./run.sh")<CR>', opts)
vim.api.nvim_set_keymap('n', '<Leader>cbr', ':lua require("Maker").cmd("./configure.sh .; ./build.sh; ./run.sh")<CR>', opts)

About

Tools to run commands in neovim and use their output as diagnostics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages