๐ป Editor Support
Complete editor support for Nixi with syntax highlighting, indentation, and integrated tools.
๐ง Supported Editors
Neovim
Full syntax highlighting, smart indentation, and file detection for .nixi files. Easy installation with plugin managers.
Vim
Classic Vim support with syntax highlighting, smart indentation, and file detection for .nixi files.
VS Code
Complete language support with syntax highlighting, code snippets, integrated compilation commands, and auto-completion.
Cursor
AI-powered editor support with enhanced code generation, smart error analysis, and AI-assisted refactoring capabilities.
๐ง Neovim Installation
# Quick install script ./install-neovim.sh # Manual installation mkdir -p ~/.config/nvim/{syntax,ftdetect,indent} cp neovim/syntax/nixi.vim ~/.config/nvim/syntax/ cp neovim/ftdetect/nixi.vim ~/.config/nvim/ftdetect/ cp neovim/indent/nixi.vim ~/.config/nvim/indent/ # Using vim-plug Plug 'path/to/nixi', {'rtp': 'neovim'} # Using lazy.nvim { 'path/to/nixi', rtp = 'neovim' }
# Neovim Features
โ
Syntax highlighting for keywords, built-ins, components
โ
Smart indentation for let blocks, components, styles
โ
File type detection for .nixi files
โ
Customizable colors and highlighting
โ
Support for HTML, CSS, and JavaScript blocks
โ
Component and function recognition
โ
Comment and string highlighting
๐ Vim Installation
# Quick install script ./install-vim.sh # Manual installation mkdir -p ~/.vim/{syntax,ftdetect,indent} cp vim/syntax/nixi.vim ~/.vim/syntax/ cp vim/ftdetect/nixi.vim ~/.vim/ftdetect/ cp vim/indent/nixi.vim ~/.vim/indent/ # Using vim-plug Plug 'path/to/nixi', {'rtp': 'vim/'} # Using Vundle Plugin 'path/to/nixi', {'rtp': 'vim/'} # Test installation vim examples/simple-gui.nixi
# Vim Features
โ
Syntax highlighting for keywords, built-ins, components
โ
Smart indentation for let blocks, components, styles
โ
File type detection for .nixi files
โ
Support for JavaScript (js "...") blocks
โ
Support for HTML (html { ... }) blocks
โ
Component and function recognition
โ
CSS property highlighting in style blocks
๐ป VS Code Extension
# Install from marketplace 1. Open VS Code 2. Go to Extensions (Ctrl+Shift+X) 3. Search "Nixi Language Support" 4. Click Install # Install from source cd vscode-extension npm install npm run compile vsce package code --install-extension nixi-language-1.0.0.vsix # Available commands - Nixi: Compile File - Nixi: Run File - Nixi: Compile to JavaScript # Keyboard shortcuts { "key": "ctrl+shift+b", "command": "nixi.compile", "when": "editorLangId == nixi" }, { "key": "f5", "command": "nixi.run", "when": "editorLangId == nixi" }
# VS Code Features
โ
Full syntax highlighting and code snippets
โ
Integrated compilation commands
โ
Auto-completion and bracket matching
โ
Status bar integration
โ
Error highlighting and diagnostics
โ
Go to definition support
โ
Hover information for functions
โ
Code formatting capabilities
๐ค Cursor Extension
# Install from marketplace 1. Open Cursor 2. Go to Extensions (Ctrl+Shift+X) 3. Search "Nixi Language Support for Cursor" 4. Click Install # AI Integration Examples "Create a Nixi component for a user profile card" "Explain how this let-in binding works" "Refactor this component to use props" "Help me debug this Nixi code"
# Cursor AI Features
โ
AI-powered code generation and explanation
โ
Smart error analysis and suggestions
โ
AI-assisted refactoring
โ
Context-aware completions
โ
Natural language to code conversion
โ
Code optimization suggestions
โ
Documentation generation
โ
Test case generation
๐ Other Editors
# For Sublime Text, Atom, and other editors # Copy the TextMate grammar file cp vscode-extension/syntaxes/nixi.tmLanguage.json ~/.config/sublime-text-3/Packages/User/ # For Atom mkdir -p ~/.atom/packages/nixi-language cp -r vscode-extension/* ~/.atom/packages/nixi-language/ # For other TextMate-compatible editors # Copy nixi.tmLanguage.json to the appropriate syntax directory
# Basic Editor Support
โ
Syntax highlighting for keywords and strings
โ
Comment recognition
โ
Basic code folding
โ
File type association (.nixi files)
โ
Basic color schemes
โ ๏ธ Limited advanced features
โ ๏ธ No auto-completion
โ ๏ธ No error checking
๐ ๏ธ Installation Scripts
Neovim Setup
One-click installation for Neovim support.
./install-neovim.sh
Vim Setup
One-click installation for Vim support.
./install-vim.sh
Editor Setup
Install all editor support at once.
npm run setup:editor
๐งช Test Editor Support
Open Test File
Open a Nixi file in your configured editor:
# For Vim/Neovim vim examples/simple-gui.nixi nvim examples/simple-gui.nixi # For VS Code code examples/simple-gui.nixi
Verify Syntax Highlighting
You should see:
- Keywords (let, in, if, then, else) highlighted
- Strings in different colors
- Comments in italic gray
- Component names properly highlighted
- Functions and built-ins recognized
Test Indentation
Type some code and test auto-indentation:
let x = 42 in echo x
The editor should automatically indent after 'let' and dedent before 'in'.