This plugin allows to show the norminette errors inside your buffer, through diagnostics and it's compatible with quickfixlist!
It only works for .c
and .h
files.
📦 Packer 📦
use {
"MrSloth-dev/42-NorminetteNvim",
requires = { "nvim-lua/plenary.nvim", "echasnovski/mini.icons" },
config = function()
require("norminette").setup({
keybind = "<leader>n",
diagnostic_color = "#00ff00",
show_size = true,
})
end,
}
💤 Lazy.nvim 💤
{
"MrSloth-dev/42-NorminetteNvim",
dependencies = { "nvim-lua/plenary.nvim" , "echasnovski/mini.icons"},
config = function()
require("norminette").setup({
keybind = "<leader>n",
diagnost_color = "#00ff00",
show_size = true,
})
end,
},
- Neovim >= 0.10
- Norminette
- Plenary.nvim for async.
- mini.icons for toggle icon.
You can activate the toggle two ways : :Norminette
or using the <leader>n
, notice that you can change the keybind to your liking.
By default the plugin is running on a asynchronous process to prevent slowdowns. But if you find the constant errors popping up or notice a slowdown, try to disable it.
Tip: To open a split with the quickfix list you can use a functionality of neovim and assign it to a keybind like
vim.keymap.set("n", "<leader>q", vim.diagnostic.setloclist, { desc = "Open diagnostic [Q]uickfix list" })
This way you only need to press <leader>q
and the split opens automatically.
- This plugin isn't working on 42's PCs through the flatpak.
To report a bug or ask for a feature, please open a Github issue
- Auto-formatter
- Improve performance
- Integrate with statusline other than default
- Detect functions through tree-sitter
All notable changes to this project will be documented in this file.
- Now it can show Function size as messages
- The way that the plugin runs while the toggle in on to improve performance and reduce latency.
- The way that the plugin saves, to improve performance and reduce disk usage.
- There was an error when the plugin was called through
:Norminette
that was calling an old function.
- Reworked the way that the plugin works, now it's a toggle that you can turn on and off.
- Changed the bullet point in errors.
- Symbol in statusline to see if the toggle is on or off.
- Added diagnostic_color, not working (yet).
In this version I added asynchronous task for the norminette so there won't be a slowdown
On the previous version the toggle wasn't working properly because it wasn't clearning the diagnostics after running the command. Still doesn't Work in 42 yet.
In this version I added asynchronous task for the norminette so there won't be a slowdown
- Added Plenary for async task for norminette.
- This is the first Version, it's working outside the 42's Computers.
MIT