A Neovim plugin for enhanced integration with amp-cli, providing syntax highlighting and filetype detection for amp command files.
- Filetype Detection: Files created by
amp /editor(e.g.,message.amp.md) are detected asmarkdown.amp-agent - Syntax Highlighting: @ file paths (like
@src/main.js,@config.json) are highlighted as constants - Markdown Integration: Full markdown syntax highlighting and features are preserved
- Filetype Detection: Permission files (
permissions.txt) are detected asamp-permissions - Syntax Highlighting: Custom highlighting for amp permission syntax
- Neovim >= 0.11.0
local MiniDeps = require('mini.deps')
MiniDeps.add({
source = 'aliou/nvim-amp',
}){
'aliou/nvim-amp',
config = function()
-- Optional configuration
end,
}# For automatic loading on startup
git clone https://github.com/aliou/nvim-amp.git \
~/.local/share/nvim/site/pack/plugins/start/nvim-amp
# Or for optional loading (use :packadd nvim-amp to load)
git clone https://github.com/aliou/nvim-amp.git \
~/.local/share/nvim/site/pack/plugins/opt/nvim-amp