Warning
kaihou.nvim helps you "free" your current project from Windows Defender real-time scanning by managing Defender exclusion paths directly from Neovim.
- Windows-only safety guard
- Async, non-blocking PowerShell execution via
vim.system() - Project root detection using
vim.fs.root()with smart fallbacks - Administrator privilege check before any Defender modification
- Simple commands:
:DefenderCheck/:KaihouCheck:DefenderToggle/:KaihouToggle:DefenderList/:KaihouList
- No external dependencies
- Lazy.nvim compatible
- Neovim 0.10+
- Windows
- Windows Defender available (
Get-MpPreference,Add-MpPreference,Remove-MpPreference)
{
"inoUwU/kaihou.nvim",
}:DefenderCheck/:KaihouCheck- Checks whether the current project root is already in Defender exclusions.
:DefenderToggle/:KaihouToggle- Adds/removes the current project root from Defender exclusions.
- Requires administrator privileges to modify Defender preferences.
:DefenderList/:KaihouList- Lists current Defender exclusion paths using
vim.ui.select.
- Lists current Defender exclusion paths using
kaihou.nvim resolves the project root using:
.gitpackage.jsonCargo.tomlpyproject.toml
If no marker is found, it falls back to the current working directory.
- On non-Windows systems, commands are safely skipped with warnings.
- All Defender commands require administrator privileges to access Windows Defender.
- All operations are asynchronous and do not block the UI.
MIT