Skip to content

Latest commit

 

History

History
51 lines (37 loc) · 1.06 KB

README.md

File metadata and controls

51 lines (37 loc) · 1.06 KB

checkpatch.nvim

Simple Kernelstyle linter

This plugin is a front-end for checkpatch.pl script. It automaticlly runs the script every time you save your .c or .h files and shows errors in the editor.

Install

Requierments

  • Latest version of neovim
  • Perl
  • checkpatch script from kernel source tree

For vim-plug

Plug 'Deedone/checkpatch.nvim', { 'do': ':UpdateRemotePlugins' }

let g:checkpatch_enabled = 1
let g:checkpatch_path = "/path/to/checkpatch.pl"

For dein.vim

call dein#add('Deedone/checkpatch.nvim')
let g:checkpatch_enabled = 1
let g:checkpatch_path = "/path/to/checkpatch.pl"

If something breaks try to execute :UpdateRemotePlugins

Configuration

Variables

let g:checkpatch_path = "/path/to/checkpatch.pl"
let g:checkpatch_enabled = 1

Commands

:CheckpatchEnable
:CheckpatchDisable

Screenshots

Example