chore: adjust for plugin-only scope after split

After splitting from the original scl_lsp repo, update for plugin-only scope:

- README.md: focused on Neovim plugin installation, configuration,
  commands, keybindings, and editor features
- AGENTS.md: plugin-only project structure and conventions
- test/run_tests.lua: run only plugin tests (udt, db, fb, integration)
- test/test_integration.lua: remove plc_json dependency (server module)
- queries/: move from queries/*.scm to queries/scl/*.scm (nvim-treesitter
  per-language convention)
- ftdetect/scl.vim: add filetype detection for .scl/.udt/.db files
This commit is contained in:
2026-07-18 11:46:18 +02:00
parent 8c6a050efb
commit 8255db7f64
10 changed files with 121 additions and 296 deletions
+2 -4
View File
@@ -1,11 +1,11 @@
#!/usr/bin/env lua
package.path = package.path .. ";lua/?.lua;src/?.lua"
package.path = package.path .. ";lua/?.lua"
local test = dofile("test/test_harness.lua")
print("========================================")
print(" SCL LSP - Test Suite")
print(" tia-lsp.nvim - Plugin Test Suite")
print("========================================")
print(string.format("Reference Project: %s", test.REF_PROJECT))
@@ -28,8 +28,6 @@ local function run_all_tests()
run_test_file("test_udt.lua")
run_test_file("test_db.lua")
run_test_file("test_fb.lua")
run_test_file("test_formatter.lua")
run_test_file("test_plc_json.lua")
run_test_file("test_integration.lua")
test.report()
+1 -10
View File
@@ -1,17 +1,11 @@
local test = dofile("test/test_harness.lua")
package.path = package.path .. ";lua/?.lua;src/?.lua"
package.path = package.path .. ";lua/?.lua"
local udt_parser = require("tia.udt_parser")
local db_parser = require("tia.db_parser")
local fb_parser = require("tia.fb_parser")
local script_path = debug.getinfo(1, "S").source:gsub("^@", ""):match("(.*/)") or "."
script_path = script_path:gsub("^test/", ""):gsub("/tests$", "")
if script_path == "" then script_path = "." end
local plc_json = dofile(script_path .. "/src/plc_json.lua")
local function scan_directory(dir, ext)
local files = {}
local handle = io.popen('find "' .. dir .. '" -type f -name "*.' .. ext .. '" 2>/dev/null')
@@ -234,9 +228,6 @@ local function run_integration_tests()
print("\n--- Type Resolution ---")
test_type_resolution()
print("\n--- Workspace Type Loading ---")
test_workspace_type_loading()
end)
end