lazar
|
c4d65d5c87
|
docs: add filetype detection section to AGENTS.md
|
2026-02-20 09:01:06 +01:00 |
|
lazar
|
35eae17f4f
|
feat(lsp): add goto declaration for FB, DB, and UDT types
- Add declaration provider (gD) that finds definitions for:
- Functions in .scl files
- Function Blocks (FB) in .scl files
- Data Blocks (DB) in .scl and .db files
- User-Defined Types (UDT) in .scl and .udt files
- Implement project root detection for cross-directory searches
- Add duplicate location filtering to prevent multiple results
- Load UDT types from .udt files in plc_json
- Update documentation with goto declaration feature
|
2026-02-19 18:01:30 +01:00 |
|
lazar
|
212d4b710d
|
docs: document formatter collapseAttributes default change
|
2026-02-19 11:24:22 +01:00 |
|
lazar
|
b663fd6b4b
|
docs: document attr_toggle behavior after formatting
|
2026-02-19 11:18:16 +01:00 |
|
lazar
|
74e521fe04
|
feat: add interactive attribute block toggle with keybindings and commands
Add ability to expand/collapse SCL variable attribute blocks like {EXTERNALACCESSIBLE := 'false'} to {...}
Features:
- Per-variable collapse rules via collapseVariableRules option
- Interactive toggle with <Leader>xa keybinding
- Commands: SCLToggleAttrBlock, SCLExpandAllAttrBlocks, SCLCollapseAllAttrBlocks
- Keybindings: <Leader>xa (toggle), <Leader>xae (expand all), <Leader>xac (collapse all)
- Supports both formatter-collapsed and manually collapsed blocks
Also update AGENTS.md with new documentation and troubleshooting guide
|
2026-02-19 10:12:58 +01:00 |
|
lazar
|
246fa85442
|
fix(lsp): Fix LSP server attachment and JSON parsing issues
- Replace lspconfig.scl_lsp registration with vim.lsp.start() + FileType autocmd
for Neovim 0.11+ compatibility
- Fix Lua reserved keyword 'end' in tables (use bracket notation ['end'])
- Fix JSON decoder pattern matching bugs (s:find -> s:sub:match)
- Add LSP method name conversion (textDocument/didOpen -> textDocument_didOpen)
- Handle request vs notification correctly (only respond to requests with id)
- Strip CRLF line endings for Windows compatibility
- Add semantic token handler aliases
- Update documentation with implementation notes
|
2026-02-18 13:03:14 +01:00 |
|
lazar
|
b5d50384fb
|
docs(AGENTS.md): Update AGENTS.md
The new AGENTS.md includes:
- Reference project for testing
- Build/test commands (LSP and tree-sitter)
- Condensed project structure
- Code style guidelines (module pattern, naming, imports, comments)
- Parser module API convention
- Cache management patterns
- Error handling patterns (return pattern, pcall, validation)
- Completion system documentation
- Commands table
|
2026-02-18 10:25:35 +01:00 |
|
lazar
|
7d54578406
|
docs: Update AGENTS.md with comprehensive feature documentation
|
2026-02-17 15:30:30 +01:00 |
|
lazar
|
fbbd357ee2
|
Inintal commit
|
2026-02-14 15:05:12 +01:00 |
|