๐Ÿ”ง Supported Editors

๐Ÿ”ง

Neovim

Full syntax highlighting, smart indentation, and file detection for .nixi files. Easy installation with plugin managers.

./install-neovim.sh
๐Ÿ“

Vim

Classic Vim support with syntax highlighting, smart indentation, and file detection for .nixi files.

./install-vim.sh
๐Ÿ’ป

VS Code

Complete language support with syntax highlighting, code snippets, integrated compilation commands, and auto-completion.

Search: "Nixi Language Support"
๐Ÿค–

Cursor

AI-powered editor support with enhanced code generation, smart error analysis, and AI-assisted refactoring capabilities.

Search: "Nixi Language Support for Cursor"

๐Ÿ”ง Neovim Installation

Quick Install Script
# 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'
}
Features
# 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
# 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
Features
# 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
# 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"
}
Features
# 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
# 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"
AI-Powered Features
# 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

TextMate Grammar Support
# 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 Features
# 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

๐Ÿงช Test Editor Support

1

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
2

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
3

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'.