Neovim improvements: - Add tree-sitter text objects for functions, types, blocks - Add folding support - Enhanced REPL integration (toggle, send line/selection) - New commands: LuxCheck, LuxReplToggle, LuxSend - Better keybindings with localleader VS Code extension: - Full syntax highlighting with TextMate grammar - LSP client integration - 20+ snippets for common patterns - Commands: run, format, check, REPL - Keybindings and context menu Fixes: - Fix all cargo warnings with #[allow(dead_code)] annotations - Clean up unused variables Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
30 lines
562 B
Scheme
30 lines
562 B
Scheme
; Folding queries for Lux
|
|
; Allows folding function bodies, type definitions, etc.
|
|
|
|
; Fold function bodies
|
|
(function_declaration) @fold
|
|
|
|
; Fold type definitions
|
|
(type_declaration) @fold
|
|
|
|
; Fold effect declarations
|
|
(effect_declaration) @fold
|
|
|
|
; Fold handler declarations
|
|
(handler_declaration) @fold
|
|
|
|
; Fold trait declarations
|
|
(trait_declaration) @fold
|
|
|
|
; Fold impl blocks
|
|
(impl_declaration) @fold
|
|
|
|
; Fold match expressions
|
|
(match_expression) @fold
|
|
|
|
; Fold block expressions
|
|
(block_expression) @fold
|
|
|
|
; Fold multi-line comments (doc comments)
|
|
(doc_comment)+ @fold
|