From 41fb5c1bfafe7043c3b9be1cacee1994f6d983c8 Mon Sep 17 00:00:00 2001 From: Jeremy Kaplan Date: Mon, 26 Oct 2026 11:13:07 -0400 Subject: [PATCH] Revert "helix: Add snippets" This reverts commit 92b481038d1a62e7ccd4223937239772de91b509. I think simple-completion-language-server (scls) causes Helix to try it first for all language server things, which it can't provide! I'll try again once I figure out how Helix handles multiple language servers. --- helix/languages.toml | 4 ---- helix/snippets/go.toml | 8 -------- helix/snippets/javascript.toml | 14 -------------- helix/snippets/zig.toml | 22 ---------------------- 4 files changed, 48 deletions(-) delete mode 100644 helix/snippets/go.toml delete mode 100644 helix/snippets/javascript.toml delete mode 100644 helix/snippets/zig.toml diff --git a/helix/languages.toml b/helix/languages.toml index 8810ea3..561d231 100644 --- a/helix/languages.toml +++ b/helix/languages.toml @@ -2,7 +2,6 @@ name = "go" auto-format = true formatter = { command = "goimports" } -language-servers = [ "scls", "gopls", "golangci-lint-lsp" ] [language-server.gopls.config.hints] assignVariableTypes = false @@ -35,6 +34,3 @@ refresh = "onSave" [[language]] name = "python" auto-format = true - -[language-server.scls] -command = "simple-completion-language-server" diff --git a/helix/snippets/go.toml b/helix/snippets/go.toml deleted file mode 100644 index 45fcffa..0000000 --- a/helix/snippets/go.toml +++ /dev/null @@ -1,8 +0,0 @@ -[[snippets]] -prefix = 'trun' -description = 't.Run(string, func(t *testing.T))' -body = ''' -t.Run("$1", func(t *testing.T) { - ${0:t.Fatal("TODO")} -}) -''' diff --git a/helix/snippets/javascript.toml b/helix/snippets/javascript.toml deleted file mode 100644 index 82e8a6b..0000000 --- a/helix/snippets/javascript.toml +++ /dev/null @@ -1,14 +0,0 @@ -[[snippets]] -prefix = 'clog' -description = 'console.log(...)' -body = 'console.log($0)' - -[[snippets]] -prefix = 'cdeb' -description = 'console.debug(...)' -body = 'console.debug($0)' - -[[snippets]] -prefix = 'cerr' -description = 'console.error(...)' -body = 'console.error($0)' diff --git a/helix/snippets/zig.toml b/helix/snippets/zig.toml deleted file mode 100644 index 322a167..0000000 --- a/helix/snippets/zig.toml +++ /dev/null @@ -1,22 +0,0 @@ -[[snippets]] -prefix = 'Struct' -description = 'Struct declaration' -body = ''' -const $1 = struct { - ${0} -}; -''' - -[[snippets]] -prefix = 'Enum' -description = 'Enum declaration' -body = ''' -const $1 = union(enum) { - ${0} -}; -''' - -[[snippets]] -prefix = 'dbg' -description = 'Debug print' -body = 'std.debug.print("$1\n", .{ $0 });'