epita-nvim-lint

View on GitHub
epita-nvim-lint

epita-nvim-lint

nvim-lint integration for epita-coding-style, the EPITA C/C++ coding style checker.

Provides inline diagnostics in Neovim for EPITA coding style violations.

Requirements

Install epita-coding-style

pipx install epita-coding-style

Install the plugin

lazy.nvim / LazyVim

Add to your lua/plugins/ directory (e.g. lua/plugins/epita-lint.lua):

return {
  {
    "KazeTachinuu/epita-nvim-lint",
    dependencies = { "mfussenegger/nvim-lint" },
    ft = { "c", "cpp" },
    config = function()
      require("epita-nvim-lint").setup()
    end,
  },
}

Diagnostics appear on file open and after each save, but only when the file is inside a project containing an epita-style.toml, .epita-style.toml, or .epita-style file between the file's directory and Neovim's current working directory. Config files above the working directory (for example, in your home directory) are ignored. The plugin does not load nvim-lint or check for the epita-coding-style executable in other C/C++ projects.

Configuration

The linter respects your project's epita-style.toml / .epita-style config file. See epita-coding-style --help for options.

License

MIT

esc