From 4c54c966aa7f11ee86d2ede79daa004404d3c25d Mon Sep 17 00:00:00 2001 From: twoneis Date: Wed, 31 Jan 2024 21:49:20 +0100 Subject: [PATCH] added helix config for bqn --- modules/home/editor/helix-languages.nix | 26 +++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/modules/home/editor/helix-languages.nix b/modules/home/editor/helix-languages.nix index 4e76854..74c7e62 100644 --- a/modules/home/editor/helix-languages.nix +++ b/modules/home/editor/helix-languages.nix @@ -1,8 +1,19 @@ { - language-server.asm-lsp = { - command = "asm-lsp"; + language-server = { + asm-lsp = { + command = "asm-lsp"; + }; + bqnlsp = { + command = "bqnlsp"; + }; }; + grammar = [{ + name = "bqn"; + source.git = "https://github.com/shnarazk/tree-sitter-bqn"; + source.rev = "f0e2f74ba75c6bf0a143a1d3870317c9c8064af9"; + }]; + language = [{ name = "gas"; scope = "source.gas"; @@ -11,5 +22,16 @@ indent = { tab-width = 8; unit = " "; }; roots = []; file-types = ["S"]; + } { + name = "bqn"; + file-types = [ "bqn" ]; + comment-token = "#"; + indent = { tab-width = 4; unit = " "; }; + shebangs = [ "bqn" "cbqn" ]; + roots = []; + injection-regex = "bqn"; + scope = "scope.bqn"; + language-servers = [ "bqnlsp" ]; + language-id = "bqn"; }]; }