summaryrefslogtreecommitdiffhomepage
path: root/cmd
diff options
context:
space:
mode:
authorKujtim Hoxha <[email protected]>2025-04-03 15:20:15 +0200
committerKujtim Hoxha <[email protected]>2025-04-03 17:23:41 +0200
commitcfdd687216799cb5b47f099f1e7cd5dd16b3bdd0 (patch)
treea822bfde1463a7080c0ea06dd17796d7a1617d3d /cmd
parentafd9ad0560d76c2a6d161dad52553b10ff428905 (diff)
downloadopencode-cfdd687216799cb5b47f099f1e7cd5dd16b3bdd0.tar.gz
opencode-cfdd687216799cb5b47f099f1e7cd5dd16b3bdd0.zip
add initial lsp support
Diffstat (limited to 'cmd')
-rw-r--r--cmd/lsp/main.go4
-rw-r--r--cmd/root.go1
2 files changed, 5 insertions, 0 deletions
diff --git a/cmd/lsp/main.go b/cmd/lsp/main.go
new file mode 100644
index 000000000..da29a2cad
--- /dev/null
+++ b/cmd/lsp/main.go
@@ -0,0 +1,4 @@
+package main
+
+func main() {
+}
diff --git a/cmd/root.go b/cmd/root.go
index b4c1113a4..3ed809328 100644
--- a/cmd/root.go
+++ b/cmd/root.go
@@ -36,6 +36,7 @@ var rootCmd = &cobra.Command{
ctx := context.Background()
app := app.New(ctx, conn)
+ defer app.Close()
app.Logger.Info("Starting termai...")
zone.NewGlobal()
tui := tea.NewProgram(